Repository navigation
Prevent copying assignments #1063
Annotations
2 errors
|
check
Process completed with exit code 1.
|
|
src/test/copy_move.test.ts > copying a folder containing an assignment drops the assignment data:
apps/api/src/query/activity_edit_view.ts#L112
PrismaClientKnownRequestError:
Invalid `prisma.content.findUniqueOrThrow()` invocation in
/home/runner/work/DoenetApps/DoenetApps/apps/api/src/query/activity_edit_view.ts:112:24
109 }
110
111 // 1. verify that `loggedInUserId` can view content
→ 112 await prisma.content.findUniqueOrThrow(
An operation failed because it depends on one or more records that were required but not found. Expected a record, found none.
❯ Un.handleRequestError ../../node_modules/@prisma/client/runtime/library.js:121:7447
❯ Un.handleAndLogRequestError ../../node_modules/@prisma/client/runtime/library.js:121:6771
❯ Un.request ../../node_modules/@prisma/client/runtime/library.js:121:6478
❯ l ../../node_modules/@prisma/client/runtime/library.js:130:9644
❯ getContent src/query/activity_edit_view.ts:112:3
❯ src/test/copy_move.test.ts:1053:21
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'P2025', clientVersion: '6.4.1', meta: { modelName: 'content', cause: 'Expected a record, found none.' }, batchRequestIdx: undefined }
|