Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bs3-functions/node-functions/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export { archiveExpiredPosts } from "./archiveExpiredPosts";
// In the v1 API, each function can only serve one request per container, so
// this will be the maximum concurrent request count.
functions.setGlobalOptions({ maxInstances: 10 });
admin.initializeApp();
if (!admin.apps.length) admin.initializeApp();
const firestore = admin.firestore();

// Schedule to run every Sunday at midnight UTC
Expand Down