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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user