clarify all "Invalid uuid" messages by making each unique

This commit is contained in:
Alys
2020-01-29 15:49:55 +10:00
parent 02d6b77a03
commit 82a5bc236f
9 changed files with 23 additions and 23 deletions

View File

@@ -12,7 +12,7 @@ export default function baseModel (schema, options = {}) {
_id: {
$type: String,
default: uuid,
validate: [v => validator.isUUID(v), 'Invalid uuid.'],
validate: [v => validator.isUUID(v), 'Invalid uuid in baseModel.'],
},
});
}