Skip to content

Commit

Permalink
Merge pull request #13 from mrmilu/fix/improved-concurrency-of-requests
Browse files Browse the repository at this point in the history
fix(core): improve concurrency of requests
  • Loading branch information
arnaugomez authored May 27, 2024
2 parents e630205 + 9b34e84 commit ac46649
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/decorators/expose_all.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export function ExposeAll(options?: ExposeAllOptions) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
return function (target: any) {
const object = new target();
Object.keys(object).forEach((propertyName) => {
for (const propertyName of Object.keys(object)) {
const exposeMetadata = defaultMetadataStorage.findExposeMetadata(target, propertyName);
defaultMetadataStorage.addExposeMetadata({
target,
Expand All @@ -38,6 +38,6 @@ export function ExposeAll(options?: ExposeAllOptions) {
...exposeMetadata?.options
}
});
});
}
};
}

0 comments on commit ac46649

Please sign in to comment.