feat: add taggedOrgs feature
This commit is contained in:
@@ -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" },
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user