refactor server
This commit is contained in:
1 parent
6cb538ce69
commit
acc910cbc0
48 files changed
+584
-650
No files matched your search
@@ -1,5 +1,5 @@
|
||||
import Scheduler from "super-simple-scheduler";
|
||||
const SERVICE_NAME = "SuperSimpleQueue";
|
||||
const SERVICE_NAME = "JobQueue";
|
||||
|
||||
class SuperSimpleQueue {
|
||||
static SERVICE_NAME = SERVICE_NAME;
|
||||
@@ -11,6 +11,10 @@ class SuperSimpleQueue {
|
||||
this.helper = helper;
|
||||
}
|
||||
|
||||
get serviceName() {
|
||||
return SuperSimpleQueue.SERVICE_NAME;
|
||||
}
|
||||
|
||||
static async create({ appSettings, db, logger, helper }) {
|
||||
const instance = new SuperSimpleQueue({ appSettings, db, logger, helper });
|
||||
await instance.init();
|
||||
|
||||
Reference in new issue
Block a user