We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96f7914 commit c1b7023Copy full SHA for c1b7023
src/app/api/ai-upload/route.ts
@@ -76,10 +76,7 @@ export async function POST(req: Request) {
76
77
const finalTags = await setTagsFromCurrentLists(tags);
78
console.log(" tags:", finalTags);
79
- if(!tags)
80
- {
81
- return null;
82
- }
+
83
const subject = finalTags.subject;
84
const slot = finalTags.slot;
85
const exam = finalTags.exam
@@ -176,6 +173,7 @@ export async function POST(req: Request) {
176
173
const paper = new PaperAdmin({
177
174
cloudinary_index: configIndex,
178
175
public_id_cloudinary,
179
finalUrl,
180
thumbnailUrl,
181
subject,
0 commit comments