Skip to content

Commit

Permalink
refactor(functions): update functions config
Browse files Browse the repository at this point in the history
  • Loading branch information
mkue committed Jan 22, 2024
1 parent a803100 commit 6a335f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion functions/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { setGlobalOptions } from 'firebase-functions/v2/options';
import { DEFAULT_REGION } from '../../shared/src/firebase';

setGlobalOptions({ maxInstances: 1000, region: DEFAULT_REGION });
setGlobalOptions({ maxInstances: 10, region: DEFAULT_REGION });

export * from './cron/index';
export * from './firestore/index';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export interface CreateDonationCertificatesFunctionProps {
createAll: boolean; // if true, certificates for all CH users are created
}

export default onCall<CreateDonationCertificatesFunctionProps, Promise<string>>({ memory: '4GiB' }, async (request) => {
export default onCall<CreateDonationCertificatesFunctionProps, Promise<string>>({ memory: '2GiB' }, async (request) => {
const firestoreAdmin = new FirestoreAdmin();
await firestoreAdmin.assertGlobalAdmin(request.auth?.token?.email);
const storageAdmin = new StorageAdmin();
Expand Down

0 comments on commit 6a335f2

Please sign in to comment.