feat: add tagging alerts and sorting on tags

This commit is contained in:
2025-08-19 08:03:44 +05:30
parent 17a63f67a5
commit caea0e60e6
20 changed files with 260 additions and 49 deletions

View File

@@ -25,6 +25,7 @@ const notificationSchema = new mongoose.Schema({
type: mongoose.Types.ObjectId,
ref: "user",
},
taggedUsers: Array,
});
export const notificationFields = Object.keys(notificationSchema.paths).filter(