improve test coverage

This commit is contained in:
Phillip Thelen
2025-06-18 18:26:39 +02:00
parent e9b2c1b51a
commit 95266f6cb3
2 changed files with 139 additions and 11 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ export const schema = new mongoose.Schema({
$type: String, required: true, // e.g. IP address
},
blockSource: {
$type: String, enum: ['user', 'system', 'worker'], default: 'user', // who created the block
$type: String, enum: ['administrator', 'system', 'worker'], default: 'administrator', // who created the block
},
reason: {
$type: String, required: false, // e.g. 'abusive behavior'