@rvoh/psychic-workers 0.2.3 → 0.2.5
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.
@@ -505,7 +505,7 @@ class Background {
|
|
505
505
|
dreamClass = psychic_1.PsychicApplication.lookupClassByGlobalName(globalName);
|
506
506
|
}
|
507
507
|
if (dreamClass) {
|
508
|
-
const modelInstance = await dreamClass.find(id);
|
508
|
+
const modelInstance = await dreamClass.connection('primary').find(id);
|
509
509
|
if (!modelInstance)
|
510
510
|
return;
|
511
511
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access
|
@@ -501,7 +501,7 @@ export class Background {
|
|
501
501
|
dreamClass = PsychicApplication.lookupClassByGlobalName(globalName);
|
502
502
|
}
|
503
503
|
if (dreamClass) {
|
504
|
-
const modelInstance = await dreamClass.find(id);
|
504
|
+
const modelInstance = await dreamClass.connection('primary').find(id);
|
505
505
|
if (!modelInstance)
|
506
506
|
return;
|
507
507
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Dream } from '@rvoh/dream';
|
2
|
-
import { BackgroundJobConfig } from './index.js';
|
3
2
|
import { BackgroundableMethodArgs } from './BaseBackgroundedService.js';
|
3
|
+
import { BackgroundJobConfig } from './index.js';
|
4
4
|
import { FunctionPropertyNames } from './types.js';
|
5
5
|
export default class BaseBackgroundedModel extends Dream {
|
6
6
|
static get backgroundJobConfig(): BackgroundJobConfig<BaseBackgroundedModel>;
|
package/package.json
CHANGED
@@ -2,9 +2,12 @@
|
|
2
2
|
"type": "module",
|
3
3
|
"name": "@rvoh/psychic-workers",
|
4
4
|
"description": "Background job system for Psychic applications",
|
5
|
-
"version": "0.2.
|
6
|
-
"author": "
|
7
|
-
"repository":
|
5
|
+
"version": "0.2.5",
|
6
|
+
"author": "RVO Health",
|
7
|
+
"repository": {
|
8
|
+
"type": "git",
|
9
|
+
"url": "git+https://github.com/rvohealth/psychic-workers.git"
|
10
|
+
},
|
8
11
|
"license": "MIT",
|
9
12
|
"main": "./dist/cjs/src/index.js",
|
10
13
|
"module": "./dist/esm/src/index.js",
|
@@ -21,7 +24,7 @@
|
|
21
24
|
],
|
22
25
|
"scripts": {
|
23
26
|
"publish": "yarn npm publish",
|
24
|
-
"psy": "yarn psyts",
|
27
|
+
"psy": "NODE_ENV=${NODE_ENV:-test} yarn psyts",
|
25
28
|
"psyjs": "node ./dist/test-app/src/cli/index.js",
|
26
29
|
"psyts": "node --experimental-specifier-resolution=node --import ./bin/esm.js ./test-app/src/cli/index.ts",
|
27
30
|
"build": "echo \"building cjs...\" && rm -rf dist && npx tsc -p ./tsconfig.cjs.build.json && echo \"building esm...\" && npx tsc -p ./tsconfig.esm.build.json",
|
@@ -46,7 +49,6 @@
|
|
46
49
|
"@socket.io/redis-adapter": "^8.3.0",
|
47
50
|
"@socket.io/redis-emitter": "^5.1.0",
|
48
51
|
"@types/express": "^4",
|
49
|
-
"@types/luxon": "^3.4.2",
|
50
52
|
"@types/node": "^22.5.1",
|
51
53
|
"@types/pg": "^8",
|
52
54
|
"@types/supertest": "^6.0.2",
|
@@ -56,7 +58,6 @@
|
|
56
58
|
"ioredis": "^5.4.1",
|
57
59
|
"kysely": "^0.27.5",
|
58
60
|
"kysely-codegen": "^0.17.0",
|
59
|
-
"luxon": "^3.5.0",
|
60
61
|
"luxon-jest-matchers": "^0.1.14",
|
61
62
|
"pg": "^8.13.1",
|
62
63
|
"prettier": "^3.3.3",
|
@@ -66,9 +67,9 @@
|
|
66
67
|
"ts-node": "^10.9.2",
|
67
68
|
"tslib": "^2.7.0",
|
68
69
|
"typedoc": "^0.26.6",
|
69
|
-
"typescript": "^5.
|
70
|
+
"typescript": "^5.8.2",
|
70
71
|
"typescript-eslint": "=7.18.0",
|
71
|
-
"vitest": "^3.0.
|
72
|
+
"vitest": "^3.0.9"
|
72
73
|
},
|
73
|
-
"packageManager": "yarn@4.
|
74
|
-
}
|
74
|
+
"packageManager": "yarn@4.7.0"
|
75
|
+
}
|