core: fix WorkerService implementation

pull/187/head
undefined 3 years ago
parent 4356f17ef8
commit 10bad169cf

@ -60,6 +60,8 @@ class Consumer {
class WorkerService implements BaseService {
private handlers: Record<string, Function> = {};
public started = true;
public start = () => { };
public consumer = new Consumer(
{ type: 'schedule', subType: { $in: Object.keys(this.handlers) } },
async (doc) => {

Loading…
Cancel
Save