feat: unpause by http request
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
require("dotenv").config();
|
||||
|
||||
fetch(process.argv[2] + "/admin/" + process.env.BULL_AUTH_KEY + "/unpause", {
|
||||
method: "POST"
|
||||
}).then(async x => {
|
||||
console.log(await x.text());
|
||||
process.exit(0);
|
||||
}).catch(e => {
|
||||
console.error(e);
|
||||
process.exit(1);
|
||||
});
|
||||
Reference in New Issue
Block a user