Skip to content

Commit 191b771

Browse files
committed
Merge branch 'master' into kevin/table
2 parents 15a4bf1 + 1751c2c commit 191b771

File tree

4 files changed

+135
-96
lines changed

4 files changed

+135
-96
lines changed

questions/.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v18.17.1

questions/src/models/questions.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ const QuestionSchema = new mongoose.Schema({
44
title: {
55
type: String,
66
required: true,
7+
unique: true,
78
validate: {
89
validator: (title: string) => title.length > 0,
910
message: "Title is required",

0 commit comments

Comments
 (0)