Skip to content

Commit 3bfbe11

Browse files
committed
created ambiguous field in admin paper
1 parent 7f53d60 commit 3bfbe11

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+
ambiguousTags: [],
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+
ambiguousTags: { 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+
ambiguousTags: string[];
102103
}
103104

104105
export interface ICourses {

0 commit comments

Comments
 (0)