Skip to content

Commit

Permalink
fix: use getMetaData for ModelMetadataUtil (#44)
Browse files Browse the repository at this point in the history
In inject mode, the child class has no metadata.
  • Loading branch information
killagu authored Jul 20, 2022
1 parent f43f1f0 commit 87a306c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/orm-decorator/src/util/ModelMetadataUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ export class ModelMetadataUtil {
}

static getModelMetadata(clazz): ModelMetadata | undefined {
return MetadataUtil.getOwnMetaData(MODEL_METADATA, clazz);
return MetadataUtil.getMetaData(MODEL_METADATA, clazz);
}
}

0 comments on commit 87a306c

Please sign in to comment.