From 0b02c1a8e2ba383fbda94fab0e89ae8e50f24a7a Mon Sep 17 00:00:00 2001 From: Anjali Bariya Date: Sat, 16 May 2026 16:32:14 +0530 Subject: [PATCH] fix: add missing answer notification enum type --- server/models/Notification.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/models/Notification.js b/server/models/Notification.js index 8b0609d..d762055 100644 --- a/server/models/Notification.js +++ b/server/models/Notification.js @@ -13,7 +13,7 @@ const notificationSchema = new mongoose.Schema({ }, type: { type: String, - enum: ['comment', 'upvote', 'downvote', 'accepted'], + enum: ['comment', 'upvote', 'downvote', 'accepted', 'answer'], required: true }, questionId: {