feat: replace client, agent in the content of the note with their respsective ids

This commit is contained in:
2026-01-27 13:47:02 +05:30
parent 286c6c5565
commit cf9cfc0756
2 changed files with 21 additions and 3 deletions

View File

@@ -22,7 +22,7 @@ const notificationSchema = new mongoose.Schema({
name: String,
avatar: String,
},
client: mongoose.Types.ObjectId,
client: { type: mongoose.Types.ObjectId, ref: "organization" },
clientData: Object,
createdAt: Date,
updatedAt: Date,