Skip to content

Commit 0122dd1

Browse files
Merge pull request #321 from Advik-Gupta/prod
Updated Admin Paper Model
2 parents 023420b + 7f366ce commit 0122dd1

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/app/api/upload/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ export async function POST(req: Request) {
9292
);
9393
}
9494

95-
9695
const paper = new PaperAdmin({
9796
cloudinary_index: configIndex,
9897

@@ -105,6 +104,7 @@ export async function POST(req: Request) {
105104
exam: null,
106105
semester: null,
107106
campus: null,
107+
ambiguous_tags: [],
108108
});
109109

110110
await paper.save();

src/db/papers.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ const adminSchema = new Schema<IAdminPaper>({
3535
},
3636
answer_key_included: { type: Boolean || null, default: false },
3737
is_selected: { type: Boolean, default: false },
38+
ambiguous_tags: { type: [String], default: [] },
3839
});
3940

4041
const paperSchema = new Schema<IPaper>({

src/interface.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ export interface IAdminPaper {
9999
| null;
100100
answer_key_included?: boolean | null;
101101
is_selected?: boolean;
102+
ambiguous_tags: string[];
102103
}
103104

104105
export interface ICourses {

0 commit comments

Comments
 (0)