Skip to content

Commit e7a1988

Browse files
authored
improve: use js object to store context (#14)
1 parent d84d605 commit e7a1988

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

api/context.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ export interface Context {
55
db: PrismaClient
66
}
77

8-
export function createContext(): Context {
9-
return {
10-
db,
11-
}
8+
export const context = {
9+
db,
1210
}

0 commit comments

Comments
 (0)