@rvoh/psychic-workers 0.2.4 → 0.2.6

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
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.4",
6
- "author": "RVOHealth",
7
- "repository": "https://github.com/rvohealth/psychic-workers.git",
5
+ "version": "0.2.6",
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",
@@ -20,7 +23,6 @@
20
23
  "dist/**/*"
21
24
  ],
22
25
  "scripts": {
23
- "publish": "yarn npm publish",
24
26
  "psy": "NODE_ENV=${NODE_ENV:-test} yarn psyts",
25
27
  "psyjs": "node ./dist/test-app/src/cli/index.js",
26
28
  "psyts": "node --experimental-specifier-resolution=node --import ./bin/esm.js ./test-app/src/cli/index.ts",
@@ -66,7 +68,7 @@
66
68
  "typedoc": "^0.26.6",
67
69
  "typescript": "^5.8.2",
68
70
  "typescript-eslint": "=7.18.0",
69
- "vitest": "^3.0.8"
71
+ "vitest": "^3.0.9"
70
72
  },
71
73
  "packageManager": "yarn@4.7.0"
72
- }
74
+ }