vona-module-a-queue 5.0.21 → 5.0.23
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.
- package/dist/.metadata/index.d.ts +1 -0
- package/dist/index.js +2 -2
- package/package.json +1 -1
|
@@ -43,6 +43,7 @@ declare module 'vona-module-a-queue' {
|
|
|
43
43
|
interface StartupLoadQueueWorkers {
|
|
44
44
|
get $beanFullName(): 'a-queue.startup.loadQueueWorkers';
|
|
45
45
|
get $onionName(): 'a-queue:loadQueueWorkers';
|
|
46
|
+
get $onionOptions(): IDecoratorStartupOptions;
|
|
46
47
|
}
|
|
47
48
|
}
|
|
48
49
|
/** startup: end */
|
package/dist/index.js
CHANGED
|
@@ -317,11 +317,11 @@ const __ThisModule__ = 'a-queue';
|
|
|
317
317
|
|
|
318
318
|
class Monkey extends BeanSimple {
|
|
319
319
|
async appClose() {
|
|
320
|
-
const scopeSelf = this.
|
|
320
|
+
const scopeSelf = this.app.scope(__ThisModule__);
|
|
321
321
|
await scopeSelf.service.queue.clearWorkers();
|
|
322
322
|
}
|
|
323
323
|
async appClosed() {
|
|
324
|
-
const scopeSelf = this.
|
|
324
|
+
const scopeSelf = this.app.scope(__ThisModule__);
|
|
325
325
|
await scopeSelf.service.queue.clearQueues();
|
|
326
326
|
}
|
|
327
327
|
}
|