mirror of
https://gitlab.com/mobicoop/v3/service/territory.git
synced 2026-03-28 03:25:50 +00:00
improve tests
This commit is contained in:
@@ -34,7 +34,7 @@ export class CreateTerritoryUseCase {
|
||||
return territory;
|
||||
} catch (error) {
|
||||
let key = 'territory.create.crit';
|
||||
if (error.message.includes('Already exists')) {
|
||||
if (error.message.includes('already exists')) {
|
||||
key = 'territory.create.warning';
|
||||
}
|
||||
this._loggingMessager.publish(
|
||||
|
||||
Reference in New Issue
Block a user