File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
apps/webapp/app/presenters Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -11,13 +11,10 @@ import { User } from "~/models/user.server";
11
11
import { z } from "zod" ;
12
12
import { projectPath } from "~/utils/pathBuilder" ;
13
13
import { Job } from "@trigger.dev/database" ;
14
+ import { BasePresenter } from "./v3/basePresenter.server" ;
14
15
15
- export class JobPresenter {
16
- #prismaClient: PrismaClient ;
17
-
18
- constructor ( prismaClient : PrismaClient = prisma ) {
19
- this . #prismaClient = prismaClient ;
20
- }
16
+ export class JobPresenter extends BasePresenter {
17
+
21
18
22
19
public async call ( {
23
20
userId,
@@ -30,7 +27,7 @@ export class JobPresenter {
30
27
projectSlug : Project [ "slug" ] ;
31
28
organizationSlug : Organization [ "slug" ] ;
32
29
} ) {
33
- const job = await this . #prismaClient . job . findFirst ( {
30
+ const job = await this . _replica . job . findFirst ( {
34
31
select : {
35
32
id : true ,
36
33
slug : true ,
You can’t perform that action at this time.
0 commit comments