@akiflow/ergon
Advanced tools
Comparing version 1.0.8 to 1.3.1
@@ -23,4 +23,5 @@ import { AxiosInstance } from 'axios'; | ||
triggerSchedule(id: string): Promise<void>; | ||
deleteJobs(key: string): Promise<void>; | ||
deleteJobs(id: string): Promise<void>; | ||
deleteJobsWithKey(key: string): Promise<void>; | ||
deleteSchedules(key: string): Promise<void>; | ||
} |
@@ -437,3 +437,3 @@ "use strict"; | ||
}; | ||
ErgonQueue.prototype.deleteJobs = function (key) { | ||
ErgonQueue.prototype.deleteJobs = function (id) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
@@ -445,3 +445,3 @@ var e_11; | ||
_a.trys.push([0, 2, , 3]); | ||
return [4 /*yield*/, this.cli.delete("/jobs/".concat(key))]; | ||
return [4 /*yield*/, this.cli.delete("/jobs/".concat(id))]; | ||
case 1: | ||
@@ -459,3 +459,3 @@ _a.sent(); | ||
}; | ||
ErgonQueue.prototype.deleteSchedules = function (key) { | ||
ErgonQueue.prototype.deleteJobsWithKey = function (key) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
@@ -467,3 +467,3 @@ var e_12; | ||
_a.trys.push([0, 2, , 3]); | ||
return [4 /*yield*/, this.cli.delete("/schedules/".concat(key))]; | ||
return [4 /*yield*/, this.cli.delete("/jobs/keys/".concat(key))]; | ||
case 1: | ||
@@ -481,4 +481,24 @@ _a.sent(); | ||
}; | ||
ErgonQueue.prototype.deleteSchedules = function (key) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var e_13; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
_a.trys.push([0, 2, , 3]); | ||
return [4 /*yield*/, this.cli.delete("/schedules/".concat(key))]; | ||
case 1: | ||
_a.sent(); | ||
return [2 /*return*/]; | ||
case 2: | ||
e_13 = _a.sent(); | ||
console.error(e_13); | ||
throw e_13; | ||
case 3: return [2 /*return*/]; | ||
} | ||
}); | ||
}); | ||
}; | ||
return ErgonQueue; | ||
}()); | ||
exports.ErgonQueue = ErgonQueue; |
{ | ||
"name": "@akiflow/ergon", | ||
"version": "1.0.8", | ||
"version": "1.3.1", | ||
"description": "Client for Ergon job queue", | ||
@@ -5,0 +5,0 @@ "main": "./dist/ergon.js", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
384430
8063