mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix(api): apply feedback
This commit is contained in:
parent
07be5c6fd0
commit
1d7aaca00b
@ -47,7 +47,7 @@ export class LifecycleHookManager {
|
||||
|
||||
private static addModel(model: ModelDefinition) {
|
||||
if (LifecycleHookManager.models.has(model.name)) {
|
||||
throw new Error(`Model with name ${model} already exists`);
|
||||
throw new Error(`Model with name ${model.name} already exists`);
|
||||
}
|
||||
|
||||
LifecycleHookManager.models.set(model.name, model);
|
||||
|
Loading…
Reference in New Issue
Block a user