File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
2nd-gen/delete-unused-accounts-cron/functions Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 17
17
18
18
// [START all]
19
19
// [START import]
20
- // The Cloud Functions for Firebase SDK to create v2 Cloud Functions and setup triggers.
20
+ // The Cloud Functions for Firebase SDK to create v2 Cloud Functions and set up triggers.
21
21
const { onSchedule } = require ( 'firebase-functions/v2/scheduler' ) ;
22
22
const { logger } = require ( 'firebase-functions' ) ;
23
23
24
24
// The Firebase Admin SDK to delete inactive users.
25
25
const admin = require ( 'firebase-admin' ) ;
26
26
admin . initializeApp ( ) ;
27
27
28
- // The es6-promise-pool to limit the concurrency of Promise's .
28
+ // The es6-promise-pool to limit the concurrency of promises .
29
29
const PromisePool = require ( 'es6-promise-pool' ) . default ;
30
30
// Maximum concurrent account deletions.
31
31
const MAX_CONCURRENT = 3 ;
32
32
// [END import]
33
33
34
34
// [START accountcleanup]
35
- // Run once a day at midnight, to cleanup the users
35
+ // Run once a day at midnight, to clean up the users
36
36
// Manually run the task here https://console.cloud.google.com/cloudscheduler
37
37
exports . accountcleanup = onSchedule ( 'every day 00:00' , async ( event ) => {
38
38
// Fetch all user details.
You can’t perform that action at this time.
0 commit comments