fix(api): apply feedback

This commit is contained in:
yassinedorbozgithub 2025-06-16 10:15:27 +01:00
parent 07be5c6fd0
commit 1d7aaca00b

View File

@ -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);