Skip to content

Commit c1b7023

Browse files
buildfix
1 parent 96f7914 commit c1b7023

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/app/api/ai-upload/route.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,7 @@ export async function POST(req: Request) {
7676

7777
const finalTags = await setTagsFromCurrentLists(tags);
7878
console.log(" tags:", finalTags);
79-
if(!tags)
80-
{
81-
return null;
82-
}
79+
8380
const subject = finalTags.subject;
8481
const slot = finalTags.slot;
8582
const exam = finalTags.exam
@@ -176,6 +173,7 @@ export async function POST(req: Request) {
176173
const paper = new PaperAdmin({
177174
cloudinary_index: configIndex,
178175
public_id_cloudinary,
176+
179177
finalUrl,
180178
thumbnailUrl,
181179
subject,

0 commit comments

Comments
 (0)