Skip to content

Commit

Permalink
add objects
Browse files Browse the repository at this point in the history
  • Loading branch information
jsbroks committed Oct 24, 2024
1 parent 39a7cb6 commit 6de6ffa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/job-dispatch/src/target.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ const upsertTargetMetadata = async (
});

const targetMetadataValues = targets.flatMap((target) => {
const { id, metadata = [] } = target;
const { id, metadata = {} } = target;

return Object.entries(metadata).map(([key, value]) => ({
targetId: id,
Expand Down

0 comments on commit 6de6ffa

Please sign in to comment.