feat: add taggedOrgs feature

This commit is contained in:
2026-01-26 11:16:30 +05:30
parent 9e3f0f8b07
commit ccde4f8356
15 changed files with 237 additions and 112 deletions

View File

@@ -32,15 +32,16 @@ const notificationSchema = new mongoose.Schema({
},
assignedToOrg: String,
taggedUsers: Array,
taggedOrgs: Array,
});
export const notificationFields = Object.keys(notificationSchema.paths).filter(
(path) => path !== "__v"
(path) => path !== "__v",
);
export const notificationModel = mongoose.model(
"notification",
notificationSchema
notificationSchema,
);
const createNotificationInput = z.object({
@@ -73,5 +74,5 @@ export const { schemas: notificationSchemas, $ref: $notification } =
updateNotificationInput,
pageQueryParams,
},
{ $id: "notification" }
{ $id: "notification" },
);