Skip to content

Commit

Permalink
improve: use js object to store context (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyas44 authored Dec 16, 2020
1 parent d84d605 commit e7a1988
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions api/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ export interface Context {
db: PrismaClient
}

export function createContext(): Context {
return {
db,
}
export const context = {
db,
}

0 comments on commit e7a1988

Please sign in to comment.