Commit a3d837f
committed
fix(webapp): unbreak local typecheck + unit tests
- Restore local import of `stripBackgroundWorkerMetadataForStorage` in
`createBackgroundWorker.server.ts`; the prior diff turned it into a bare
re-export and the existing in-file usage broke typecheck.
- Drop the `defaultPrisma` fallback on `findOrCreateBackgroundWorker`;
importing `~/db.server` in test runs triggered the singleton's lazy
Prisma client to attempt a localhost:5432 connection and surface as an
unhandled rejection on shutdown.1 parent c633618 commit a3d837f
2 files changed
Lines changed: 3 additions & 3 deletions
File tree
- apps/webapp/app/v3/services
- createDeploymentBackgroundWorkerV4
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
| |||
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
20 | | - | |
| 19 | + | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
| |||
0 commit comments