mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
Update api/src/utils/generics/lifecycle-hook-manager.ts
Co-authored-by: Med Marrouchi <marrouchi.mohamed@gmail.com>
This commit is contained in:
parent
6c2826d37f
commit
4de2ded12a
@ -47,7 +47,7 @@ export class LifecycleHookManager {
|
||||
|
||||
private static addModel(model: ModelDefinition) {
|
||||
if (this.models.has(model.name)) {
|
||||
throw new Error(`model with Name ${model} already exist`);
|
||||
throw new Error(`Model with name ${model} already exists`);
|
||||
}
|
||||
|
||||
this.models.set(model.name, model);
|
||||
|
Loading…
Reference in New Issue
Block a user