Skip to content

Commit 7f366ce

Browse files
committed
updated to snake casing
1 parent 3bfbe11 commit 7f366ce

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/app/api/upload/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export async function POST(req: Request) {
104104
exam: null,
105105
semester: null,
106106
campus: null,
107-
ambiguousTags: [],
107+
ambiguous_tags: [],
108108
});
109109

110110
await paper.save();

src/db/papers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +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: [] },
38+
ambiguous_tags: { type: [String], default: [] },
3939
});
4040

4141
const paperSchema = new Schema<IPaper>({

src/interface.ts

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

105105
export interface ICourses {

0 commit comments

Comments
 (0)