File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -222,10 +222,8 @@ export class FunctionsEmulator implements EmulatorInstance {
222
222
const httpsFunctionRoutes = [ httpsFunctionRoute , `${ httpsFunctionRoute } /*` ] ;
223
223
224
224
const backgroundHandler : express . RequestHandler = ( req , res ) => {
225
- const triggerName = req . params . trigger_name ;
226
- const region = req . params . region ;
225
+ const triggerId = req . params . trigger_name ;
227
226
const projectId = req . params . project_id ;
228
- const triggerId = `${ region } -${ triggerName } ` ;
229
227
230
228
const reqBody = ( req as RequestWithRawBody ) . rawBody ;
231
229
const proto = JSON . parse ( reqBody . toString ( ) ) ;
@@ -1094,7 +1092,7 @@ export class FunctionsEmulator implements EmulatorInstance {
1094
1092
// req.url = /:projectId/:region/:trigger_name/*
1095
1093
const url = new URL ( `${ req . protocol } ://${ req . hostname } ${ req . url } ` ) ;
1096
1094
const path = `${ url . pathname } ${ url . search } ` . replace (
1097
- new RegExp ( `\/${ this . args . projectId } \/[^\/]*\/${ triggerId } \/?` ) ,
1095
+ new RegExp ( `\/${ this . args . projectId } \/[^\/]*\/${ triggerName } \/?` ) ,
1098
1096
"/"
1099
1097
) ;
1100
1098
You can’t perform that action at this time.
0 commit comments