fix: add missing result type

This commit is contained in:
yassinedorbozgithub 2025-05-06 09:22:21 +01:00
parent 521619be0f
commit 35a435090c

View File

@ -99,7 +99,7 @@ export abstract class BaseRepository<
this.registerLifeCycleHooks(); this.registerLifeCycleHooks();
} }
private flatten(obj: object, prefix: string = '', result = {}) { private flatten(obj: object, prefix: string = '', result: object = {}) {
for (const [key, value] of Object.entries(obj)) { for (const [key, value] of Object.entries(obj)) {
const path = prefix ? `${prefix}.${key}` : key; const path = prefix ? `${prefix}.${key}` : key;