FIX: Transaction Bugs

This commit is contained in:
2025-05-03 15:47:33 +03:30
parent 35163f7ac7
commit 2e11c65b11
3 changed files with 17 additions and 1 deletions
@@ -30,9 +30,14 @@ const transactionSchema = new mongoose.Schema(
type: ObjectID,
ref: 'User',
},
userName: {
type: String,
required: true,
},
belongingId: {
type: ObjectID,
ref: 'Belonging',
required: true,
},
},
{