playov2-js-utilities 0.3.33 → 0.3.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -93,12 +93,15 @@ const getTaskId = (projectId, locationId, queueId, taskId = uuidv4()) => {
|
|
|
93
93
|
return `projects/${projectId}/locations/${locationId}/queues/${queueId}/tasks/${taskId}`;
|
|
94
94
|
};
|
|
95
95
|
|
|
96
|
+
let authClient;
|
|
96
97
|
/**
|
|
97
98
|
* https://cloud.google.com/tasks/docs/reference/rest/v2/projects.locations.queues.tasks/delete
|
|
98
99
|
*
|
|
99
100
|
*/
|
|
100
101
|
|
|
101
|
-
|
|
102
|
+
(async () => {
|
|
103
|
+
authClient = await authorize();
|
|
104
|
+
})();
|
|
102
105
|
|
|
103
106
|
const deleteHttpTask = async (queueId, taskId) => {
|
|
104
107
|
if (!queueId || !taskId) {
|