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
91f1368206
commit
369ef033a2
@ -104,7 +104,7 @@ const getModel = (name: string, suffix = ''): ModelDefinition => {
|
|||||||
const model = LifecycleHookManager.getModel(modelName);
|
const model = LifecycleHookManager.getModel(modelName);
|
||||||
|
|
||||||
if (!model) {
|
if (!model) {
|
||||||
throw new Error(`Unable to find model for name '${modelName}!`);
|
throw new Error(`Unable to find model for name '${modelName}!'`);
|
||||||
}
|
}
|
||||||
|
|
||||||
return model;
|
return model;
|
||||||
|
Loading…
Reference in New Issue
Block a user