fix: address comments

This commit is contained in:
abdou6666
2024-12-16 17:44:08 +01:00
parent e55b801cb0
commit 6b7a5bf0a2
3 changed files with 3 additions and 8 deletions

View File

@@ -150,7 +150,7 @@ export class SettingRepository extends BaseRepository<Setting> {
} else if (type === SettingType.secret && typeof value !== 'string') {
throw new Error('Setting Model (secret) : Value must be a string');
} else if (type === SettingType.select && typeof value !== 'string') {
throw new Error('Setting Model (select): Value must be a string array!');
throw new Error('Setting Model (select): Value must be a string!');
}
}