Ревью кода: исправление найденных проблем

This commit is contained in:
Suslov-MD
2026-08-16 18:49:14 +00:00
parent dad4642197
commit 29b0a16f94
28 changed files with 726 additions and 396 deletions
+2
View File
@@ -33,6 +33,8 @@ const notificationSchema = new Schema<INotification>(
actor: {
type: Schema.Types.ObjectId,
ref: 'User',
// Могут совпадать с user (однопользовательский сценарий) или
// быть null (системные уведомления). Mongoose кастит string → ObjectId.
default: null,
},
type: {