mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix: address comments
This commit is contained in:
@@ -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!');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user