@studious-lms/server 1.2.35 → 1.2.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/routers/_app.d.ts +84 -6
- package/dist/routers/_app.d.ts.map +1 -1
- package/dist/routers/comment.d.ts +55 -1
- package/dist/routers/comment.d.ts.map +1 -1
- package/dist/routers/comment.js +60 -0
- package/dist/routers/worksheet.d.ts +41 -2
- package/dist/routers/worksheet.d.ts.map +1 -1
- package/dist/routers/worksheet.js +15 -2
- package/package.json +1 -1
- package/src/routers/comment.ts +61 -0
- package/src/routers/worksheet.ts +15 -2
package/dist/routers/_app.d.ts
CHANGED
|
@@ -5010,7 +5010,46 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5010
5010
|
worksheetId: string;
|
|
5011
5011
|
};
|
|
5012
5012
|
output: {
|
|
5013
|
-
responses: {
|
|
5013
|
+
responses: ({
|
|
5014
|
+
comments: {
|
|
5015
|
+
id: string;
|
|
5016
|
+
reactions: {
|
|
5017
|
+
type: import(".prisma/client").$Enums.ReactionType;
|
|
5018
|
+
user: {
|
|
5019
|
+
id: string;
|
|
5020
|
+
username: string;
|
|
5021
|
+
profile: {
|
|
5022
|
+
displayName: string | null;
|
|
5023
|
+
profilePicture: string | null;
|
|
5024
|
+
profilePictureThumbnail: string | null;
|
|
5025
|
+
} | null;
|
|
5026
|
+
};
|
|
5027
|
+
}[];
|
|
5028
|
+
content: string;
|
|
5029
|
+
author: {
|
|
5030
|
+
id: string;
|
|
5031
|
+
username: string;
|
|
5032
|
+
profile: {
|
|
5033
|
+
displayName: string | null;
|
|
5034
|
+
profilePicture: string | null;
|
|
5035
|
+
profilePictureThumbnail: string | null;
|
|
5036
|
+
} | null;
|
|
5037
|
+
};
|
|
5038
|
+
replies: {
|
|
5039
|
+
id: string;
|
|
5040
|
+
content: string;
|
|
5041
|
+
author: {
|
|
5042
|
+
id: string;
|
|
5043
|
+
username: string;
|
|
5044
|
+
profile: {
|
|
5045
|
+
displayName: string | null;
|
|
5046
|
+
profilePicture: string | null;
|
|
5047
|
+
profilePictureThumbnail: string | null;
|
|
5048
|
+
} | null;
|
|
5049
|
+
};
|
|
5050
|
+
}[];
|
|
5051
|
+
}[];
|
|
5052
|
+
} & {
|
|
5014
5053
|
id: string;
|
|
5015
5054
|
feedback: string | null;
|
|
5016
5055
|
studentId: string;
|
|
@@ -5022,7 +5061,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5022
5061
|
studentWorksheetResponseId: string | null;
|
|
5023
5062
|
isCorrect: boolean;
|
|
5024
5063
|
markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
5025
|
-
}[];
|
|
5064
|
+
})[];
|
|
5026
5065
|
} & {
|
|
5027
5066
|
id: string;
|
|
5028
5067
|
submissionId: string | null;
|
|
@@ -5176,7 +5215,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5176
5215
|
} | null;
|
|
5177
5216
|
};
|
|
5178
5217
|
}[];
|
|
5179
|
-
}
|
|
5218
|
+
};
|
|
5180
5219
|
meta: object;
|
|
5181
5220
|
}>;
|
|
5182
5221
|
replyToComment: import("@trpc/server").TRPCMutationProcedure<{
|
|
@@ -10266,7 +10305,46 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10266
10305
|
worksheetId: string;
|
|
10267
10306
|
};
|
|
10268
10307
|
output: {
|
|
10269
|
-
responses: {
|
|
10308
|
+
responses: ({
|
|
10309
|
+
comments: {
|
|
10310
|
+
id: string;
|
|
10311
|
+
reactions: {
|
|
10312
|
+
type: import(".prisma/client").$Enums.ReactionType;
|
|
10313
|
+
user: {
|
|
10314
|
+
id: string;
|
|
10315
|
+
username: string;
|
|
10316
|
+
profile: {
|
|
10317
|
+
displayName: string | null;
|
|
10318
|
+
profilePicture: string | null;
|
|
10319
|
+
profilePictureThumbnail: string | null;
|
|
10320
|
+
} | null;
|
|
10321
|
+
};
|
|
10322
|
+
}[];
|
|
10323
|
+
content: string;
|
|
10324
|
+
author: {
|
|
10325
|
+
id: string;
|
|
10326
|
+
username: string;
|
|
10327
|
+
profile: {
|
|
10328
|
+
displayName: string | null;
|
|
10329
|
+
profilePicture: string | null;
|
|
10330
|
+
profilePictureThumbnail: string | null;
|
|
10331
|
+
} | null;
|
|
10332
|
+
};
|
|
10333
|
+
replies: {
|
|
10334
|
+
id: string;
|
|
10335
|
+
content: string;
|
|
10336
|
+
author: {
|
|
10337
|
+
id: string;
|
|
10338
|
+
username: string;
|
|
10339
|
+
profile: {
|
|
10340
|
+
displayName: string | null;
|
|
10341
|
+
profilePicture: string | null;
|
|
10342
|
+
profilePictureThumbnail: string | null;
|
|
10343
|
+
} | null;
|
|
10344
|
+
};
|
|
10345
|
+
}[];
|
|
10346
|
+
}[];
|
|
10347
|
+
} & {
|
|
10270
10348
|
id: string;
|
|
10271
10349
|
feedback: string | null;
|
|
10272
10350
|
studentId: string;
|
|
@@ -10278,7 +10356,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10278
10356
|
studentWorksheetResponseId: string | null;
|
|
10279
10357
|
isCorrect: boolean;
|
|
10280
10358
|
markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
10281
|
-
}[];
|
|
10359
|
+
})[];
|
|
10282
10360
|
} & {
|
|
10283
10361
|
id: string;
|
|
10284
10362
|
submissionId: string | null;
|
|
@@ -10432,7 +10510,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10432
10510
|
} | null;
|
|
10433
10511
|
};
|
|
10434
10512
|
}[];
|
|
10435
|
-
}
|
|
10513
|
+
};
|
|
10436
10514
|
meta: object;
|
|
10437
10515
|
}>;
|
|
10438
10516
|
replyToComment: import("@trpc/server").TRPCMutationProcedure<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_app.d.ts","sourceRoot":"","sources":["../../src/routers/_app.ts"],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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAiC,CAAC"}
|
|
@@ -1,4 +1,58 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
export declare const commentSelect: {
|
|
3
|
+
id: boolean;
|
|
4
|
+
content: boolean;
|
|
5
|
+
author: {
|
|
6
|
+
select: {
|
|
7
|
+
id: boolean;
|
|
8
|
+
username: boolean;
|
|
9
|
+
profile: {
|
|
10
|
+
select: {
|
|
11
|
+
displayName: boolean;
|
|
12
|
+
profilePicture: boolean;
|
|
13
|
+
profilePictureThumbnail: boolean;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
replies: {
|
|
19
|
+
select: {
|
|
20
|
+
id: boolean;
|
|
21
|
+
content: boolean;
|
|
22
|
+
author: {
|
|
23
|
+
select: {
|
|
24
|
+
id: boolean;
|
|
25
|
+
username: boolean;
|
|
26
|
+
profile: {
|
|
27
|
+
select: {
|
|
28
|
+
displayName: boolean;
|
|
29
|
+
profilePicture: boolean;
|
|
30
|
+
profilePictureThumbnail: boolean;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
reactions: {
|
|
38
|
+
select: {
|
|
39
|
+
type: boolean;
|
|
40
|
+
user: {
|
|
41
|
+
select: {
|
|
42
|
+
id: boolean;
|
|
43
|
+
username: boolean;
|
|
44
|
+
profile: {
|
|
45
|
+
select: {
|
|
46
|
+
displayName: boolean;
|
|
47
|
+
profilePicture: boolean;
|
|
48
|
+
profilePictureThumbnail: boolean;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
};
|
|
2
56
|
export declare const commentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
3
57
|
ctx: import("../trpc.js").Context;
|
|
4
58
|
meta: object;
|
|
@@ -46,7 +100,7 @@ export declare const commentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
46
100
|
} | null;
|
|
47
101
|
};
|
|
48
102
|
}[];
|
|
49
|
-
}
|
|
103
|
+
};
|
|
50
104
|
meta: object;
|
|
51
105
|
}>;
|
|
52
106
|
replyToComment: import("@trpc/server").TRPCMutationProcedure<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"comment.d.ts","sourceRoot":"","sources":["../../src/routers/comment.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"comment.d.ts","sourceRoot":"","sources":["../../src/routers/comment.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqDzB,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4QxB,CAAC"}
|
package/dist/routers/comment.js
CHANGED
|
@@ -2,6 +2,60 @@ import { createTRPCRouter, protectedProcedure } from "../trpc.js";
|
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { prisma } from "../lib/prisma.js";
|
|
4
4
|
import { TRPCError } from "@trpc/server";
|
|
5
|
+
export const commentSelect = {
|
|
6
|
+
id: true,
|
|
7
|
+
content: true,
|
|
8
|
+
author: {
|
|
9
|
+
select: {
|
|
10
|
+
id: true,
|
|
11
|
+
username: true,
|
|
12
|
+
profile: {
|
|
13
|
+
select: {
|
|
14
|
+
displayName: true,
|
|
15
|
+
profilePicture: true,
|
|
16
|
+
profilePictureThumbnail: true,
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
replies: {
|
|
22
|
+
select: {
|
|
23
|
+
id: true,
|
|
24
|
+
content: true,
|
|
25
|
+
author: {
|
|
26
|
+
select: {
|
|
27
|
+
id: true,
|
|
28
|
+
username: true,
|
|
29
|
+
profile: {
|
|
30
|
+
select: {
|
|
31
|
+
displayName: true,
|
|
32
|
+
profilePicture: true,
|
|
33
|
+
profilePictureThumbnail: true,
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
reactions: {
|
|
41
|
+
select: {
|
|
42
|
+
type: true,
|
|
43
|
+
user: {
|
|
44
|
+
select: {
|
|
45
|
+
id: true,
|
|
46
|
+
username: true,
|
|
47
|
+
profile: {
|
|
48
|
+
select: {
|
|
49
|
+
displayName: true,
|
|
50
|
+
profilePicture: true,
|
|
51
|
+
profilePictureThumbnail: true,
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
};
|
|
5
59
|
export const commentRouter = createTRPCRouter({
|
|
6
60
|
get: protectedProcedure
|
|
7
61
|
.input(z.object({
|
|
@@ -50,6 +104,12 @@ export const commentRouter = createTRPCRouter({
|
|
|
50
104
|
},
|
|
51
105
|
}
|
|
52
106
|
});
|
|
107
|
+
if (!comment) {
|
|
108
|
+
throw new TRPCError({
|
|
109
|
+
code: "NOT_FOUND",
|
|
110
|
+
message: "Comment not found",
|
|
111
|
+
});
|
|
112
|
+
}
|
|
53
113
|
return comment;
|
|
54
114
|
}),
|
|
55
115
|
replyToComment: protectedProcedure
|
|
@@ -199,7 +199,46 @@ export declare const worksheetRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
199
199
|
worksheetId: string;
|
|
200
200
|
};
|
|
201
201
|
output: {
|
|
202
|
-
responses: {
|
|
202
|
+
responses: ({
|
|
203
|
+
comments: {
|
|
204
|
+
id: string;
|
|
205
|
+
reactions: {
|
|
206
|
+
type: import(".prisma/client").$Enums.ReactionType;
|
|
207
|
+
user: {
|
|
208
|
+
id: string;
|
|
209
|
+
username: string;
|
|
210
|
+
profile: {
|
|
211
|
+
displayName: string | null;
|
|
212
|
+
profilePicture: string | null;
|
|
213
|
+
profilePictureThumbnail: string | null;
|
|
214
|
+
} | null;
|
|
215
|
+
};
|
|
216
|
+
}[];
|
|
217
|
+
content: string;
|
|
218
|
+
author: {
|
|
219
|
+
id: string;
|
|
220
|
+
username: string;
|
|
221
|
+
profile: {
|
|
222
|
+
displayName: string | null;
|
|
223
|
+
profilePicture: string | null;
|
|
224
|
+
profilePictureThumbnail: string | null;
|
|
225
|
+
} | null;
|
|
226
|
+
};
|
|
227
|
+
replies: {
|
|
228
|
+
id: string;
|
|
229
|
+
content: string;
|
|
230
|
+
author: {
|
|
231
|
+
id: string;
|
|
232
|
+
username: string;
|
|
233
|
+
profile: {
|
|
234
|
+
displayName: string | null;
|
|
235
|
+
profilePicture: string | null;
|
|
236
|
+
profilePictureThumbnail: string | null;
|
|
237
|
+
} | null;
|
|
238
|
+
};
|
|
239
|
+
}[];
|
|
240
|
+
}[];
|
|
241
|
+
} & {
|
|
203
242
|
id: string;
|
|
204
243
|
feedback: string | null;
|
|
205
244
|
studentId: string;
|
|
@@ -211,7 +250,7 @@ export declare const worksheetRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
211
250
|
studentWorksheetResponseId: string | null;
|
|
212
251
|
isCorrect: boolean;
|
|
213
252
|
markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
214
|
-
}[];
|
|
253
|
+
})[];
|
|
215
254
|
} & {
|
|
216
255
|
id: string;
|
|
217
256
|
submissionId: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"worksheet.d.ts","sourceRoot":"","sources":["../../src/routers/worksheet.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"worksheet.d.ts","sourceRoot":"","sources":["../../src/routers/worksheet.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBA8KA,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwVhC,CAAC"}
|
|
@@ -2,6 +2,7 @@ import { TRPCError } from "@trpc/server";
|
|
|
2
2
|
import { createTRPCRouter, protectedProcedure } from "../trpc.js";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { prisma } from "../lib/prisma.js";
|
|
5
|
+
import { commentSelect } from "./comment.js";
|
|
5
6
|
export const worksheetRouter = createTRPCRouter({
|
|
6
7
|
// Get a single worksheet with all questions
|
|
7
8
|
getWorksheet: protectedProcedure
|
|
@@ -236,7 +237,13 @@ export const worksheetRouter = createTRPCRouter({
|
|
|
236
237
|
worksheetId
|
|
237
238
|
},
|
|
238
239
|
include: {
|
|
239
|
-
responses:
|
|
240
|
+
responses: {
|
|
241
|
+
include: {
|
|
242
|
+
comments: {
|
|
243
|
+
select: commentSelect,
|
|
244
|
+
},
|
|
245
|
+
},
|
|
246
|
+
},
|
|
240
247
|
},
|
|
241
248
|
});
|
|
242
249
|
if (existing) {
|
|
@@ -250,7 +257,13 @@ export const worksheetRouter = createTRPCRouter({
|
|
|
250
257
|
studentId: submission.studentId,
|
|
251
258
|
},
|
|
252
259
|
include: {
|
|
253
|
-
responses:
|
|
260
|
+
responses: {
|
|
261
|
+
include: {
|
|
262
|
+
comments: {
|
|
263
|
+
select: commentSelect,
|
|
264
|
+
},
|
|
265
|
+
},
|
|
266
|
+
},
|
|
254
267
|
},
|
|
255
268
|
});
|
|
256
269
|
return created;
|
package/package.json
CHANGED
package/src/routers/comment.ts
CHANGED
|
@@ -3,6 +3,61 @@ import { z } from "zod";
|
|
|
3
3
|
import { prisma } from "../lib/prisma.js";
|
|
4
4
|
import { TRPCError } from "@trpc/server";
|
|
5
5
|
|
|
6
|
+
export const commentSelect = {
|
|
7
|
+
id: true,
|
|
8
|
+
content: true,
|
|
9
|
+
author: {
|
|
10
|
+
select: {
|
|
11
|
+
id: true,
|
|
12
|
+
username: true,
|
|
13
|
+
profile: {
|
|
14
|
+
select: {
|
|
15
|
+
displayName: true,
|
|
16
|
+
profilePicture: true,
|
|
17
|
+
profilePictureThumbnail: true,
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
replies: {
|
|
23
|
+
select: {
|
|
24
|
+
id: true,
|
|
25
|
+
content: true,
|
|
26
|
+
author: {
|
|
27
|
+
select: {
|
|
28
|
+
id: true,
|
|
29
|
+
username: true,
|
|
30
|
+
profile: {
|
|
31
|
+
select: {
|
|
32
|
+
displayName: true,
|
|
33
|
+
profilePicture: true,
|
|
34
|
+
profilePictureThumbnail: true,
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
reactions: {
|
|
42
|
+
select: {
|
|
43
|
+
type: true,
|
|
44
|
+
user: {
|
|
45
|
+
select: {
|
|
46
|
+
id: true,
|
|
47
|
+
username: true,
|
|
48
|
+
profile: {
|
|
49
|
+
select: {
|
|
50
|
+
displayName: true,
|
|
51
|
+
profilePicture: true,
|
|
52
|
+
profilePictureThumbnail: true,
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
};
|
|
60
|
+
|
|
6
61
|
export const commentRouter = createTRPCRouter({
|
|
7
62
|
get: protectedProcedure
|
|
8
63
|
.input(z.object({
|
|
@@ -51,6 +106,12 @@ export const commentRouter = createTRPCRouter({
|
|
|
51
106
|
},
|
|
52
107
|
}
|
|
53
108
|
});
|
|
109
|
+
if (!comment) {
|
|
110
|
+
throw new TRPCError({
|
|
111
|
+
code: "NOT_FOUND",
|
|
112
|
+
message: "Comment not found",
|
|
113
|
+
});
|
|
114
|
+
}
|
|
54
115
|
return comment;
|
|
55
116
|
}),
|
|
56
117
|
replyToComment: protectedProcedure
|
package/src/routers/worksheet.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { createTRPCRouter, protectedProcedure } from "../trpc.js";
|
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { prisma } from "../lib/prisma.js";
|
|
5
5
|
import { WorksheetQuestionType } from "@prisma/client";
|
|
6
|
+
import { commentSelect } from "./comment.js";
|
|
6
7
|
|
|
7
8
|
export const worksheetRouter = createTRPCRouter({
|
|
8
9
|
// Get a single worksheet with all questions
|
|
@@ -282,7 +283,13 @@ export const worksheetRouter = createTRPCRouter({
|
|
|
282
283
|
worksheetId
|
|
283
284
|
},
|
|
284
285
|
include: {
|
|
285
|
-
responses:
|
|
286
|
+
responses: {
|
|
287
|
+
include: {
|
|
288
|
+
comments: {
|
|
289
|
+
select: commentSelect,
|
|
290
|
+
},
|
|
291
|
+
},
|
|
292
|
+
},
|
|
286
293
|
},
|
|
287
294
|
});
|
|
288
295
|
|
|
@@ -298,7 +305,13 @@ export const worksheetRouter = createTRPCRouter({
|
|
|
298
305
|
studentId: submission.studentId,
|
|
299
306
|
},
|
|
300
307
|
include: {
|
|
301
|
-
responses:
|
|
308
|
+
responses: {
|
|
309
|
+
include: {
|
|
310
|
+
comments: {
|
|
311
|
+
select: commentSelect,
|
|
312
|
+
},
|
|
313
|
+
},
|
|
314
|
+
},
|
|
302
315
|
},
|
|
303
316
|
});
|
|
304
317
|
|