Awesome! I have a huge daily action, that was so far triggered by the first user logging in. Looking forward to try to translate it into a cron job instead and fix that shitty experience!
@@StevenNoCode awesome! Im currently using buildship for this, but as i understand it i can skip buildship and use firebase for this instead. Or am ing something?
It's exactly the same. Buildship is simply a low-code visual builder with the same outcomes. For example, instead of writing your own Cloud Function for web hooks, you use Buildship to do the work instead. For API calls, instead of you having to understand the Stripe Connect API docs, you can use what Buildship has built as template.
Just when I needed it, thanks man
Glad to have helped!
Awesome!
I have a huge daily action, that was so far triggered by the first user logging in. Looking forward to try to translate it into a cron job instead and fix that shitty experience!
Happy to have helped! How you’ve set up currently is often the only way if you use FF only. Now you know the secret of cron jobs :)
Excellent!
Please create a tutorial about how to securely store API keys through firebase and supabase.
Sure, I'll put it as the next short form video I make.
@@StevenNoCode awesome! Im currently using buildship for this, but as i understand it i can skip buildship and use firebase for this instead. Or am ing something?
@@EmblazNOR const functions = require('firebase-functions');
const admin = require('firebase-admin');
// To avoid deployment errors, do not call admin.initializeApp() in your code
const db = admin.firestore();
exports.test4 = functions.pubsub.schedule('0 0 1 * *').onRun(async (context) => {
try {
const snapshot = await db.collection('entity').get(); // Replace with your collection name
const batch = db.batch();
snapshot.forEach(doc => {
const data = doc.data();
const amtToCredit = data.amtToCredit || 0;
const currentPlanCredits = data.planCredits || 0;
const updatedPlanCredits = amtToCredit;
batch.update(doc.ref, { planCredits: updatedPlanCredits });
});
await batch.commit();
console.log('Plan credits incremented successfully.');
} catch (error) {
console.error('Error incrementing plan credits:', error);
}
return null;
});
Love the videos! Question, what is the difference between using buildship to integrate stripe connect and integrating it inside of flutterflow?
It's exactly the same. Buildship is simply a low-code visual builder with the same outcomes. For example, instead of writing your own Cloud Function for web hooks, you use Buildship to do the work instead. For API calls, instead of you having to understand the Stripe Connect API docs, you can use what Buildship has built as template.
Helpful. Please can you create a function for notifications. When an action is made on db, cloud funtion send notification to that user.