diff --git a/functions/index.js b/functions/index.js index ea718e9..a339c23 100644 --- a/functions/index.js +++ b/functions/index.js @@ -36,7 +36,7 @@ exports.recalculate_available_codes = v2_oncall( recalculate_available_codes_adm // On event registration, recalculate available codes const { recalculate_available_codes } = require( './modules/codes' ) -exports.recalculate_available_codes_on_event_registration = functions.runWith( generousRuntime ).firestore.document( `events/{eventId}` ).onCreate( ( { params } ) => recalculate_available_codes( params.eventId ) ) +exports.recalculate_available_codes_on_event_registration = functions.runWith( { timeoutSeconds: 540, memory: '4GB' } ).firestore.document( `events/{eventId}` ).onCreate( ( { params } ) => recalculate_available_codes( params.eventId ) ) // /////////////////////////////// // Event data