@@ -92,7 +92,7 @@ export class FunctionsApiClient {
92
92
}
93
93
94
94
try {
95
- const serviceUrl = tasksEmulatorUrl ( resources , functionName ) ?. concat ( '/' , id )
95
+ const serviceUrl = tasksEmulatorUrl ( resources ) ?. concat ( '/' , id )
96
96
?? await this . getUrl ( resources , CLOUD_TASKS_API_URL_FORMAT . concat ( '/' , id ) ) ;
97
97
const request : HttpRequestConfig = {
98
98
method : 'DELETE' ,
@@ -147,7 +147,7 @@ export class FunctionsApiClient {
147
147
const task = this . validateTaskOptions ( data , resources , opts ) ;
148
148
try {
149
149
const serviceUrl =
150
- tasksEmulatorUrl ( resources , functionName ) ??
150
+ tasksEmulatorUrl ( resources ) ??
151
151
await this . getUrl ( resources , CLOUD_TASKS_API_URL_FORMAT ) ;
152
152
153
153
const taskPayload = await this . updateTaskPayload ( task , resources , extensionId ) ;
@@ -436,9 +436,9 @@ export class FirebaseFunctionsError extends PrefixedFirebaseError {
436
436
}
437
437
}
438
438
439
- function tasksEmulatorUrl ( resources : utils . ParsedResource , functionName : string ) : string | undefined {
439
+ function tasksEmulatorUrl ( resources : utils . ParsedResource ) : string | undefined {
440
440
if ( process . env . CLOUD_TASKS_EMULATOR_HOST ) {
441
- return `http://${ process . env . CLOUD_TASKS_EMULATOR_HOST } /projects/${ resources . projectId } /locations/${ resources . locationId } /queues/${ functionName } /tasks` ;
441
+ return `http://${ process . env . CLOUD_TASKS_EMULATOR_HOST } /projects/${ resources . projectId } /locations/${ resources . locationId } /queues/${ resources . resourceId } /tasks` ;
442
442
}
443
443
return undefined ;
444
444
}
0 commit comments