Skip to content

Commit

Permalink
fix missing prisma from a few places
Browse files Browse the repository at this point in the history
  • Loading branch information
mipyykko committed Jul 7, 2023
1 parent 9bbff08 commit 00ce54d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions backend/bin/pruneOldStoredData.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { PruneOldStoredDataError } from "../lib/errors"
import sentryLogger from "../lib/logger"
import prisma from "../prisma"
import Knex from "../services/knex"

const logger = sentryLogger({ service: "prune-old-stored-data" })
Expand Down
2 changes: 1 addition & 1 deletion backend/schema/User/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ export const User = objectType({
const courseHandlerIds = nonTiered
.map((c) => c.course_id)
.concat(Object.keys(tierCourseMap))
const completions = await prisma.completion.findMany({
const completions = await ctx.prisma.completion.findMany({
where: {
user_id: id,
course_id: {
Expand Down

0 comments on commit 00ce54d

Please sign in to comment.