Skip to content

Commit

Permalink
fix: extract PD name & purpose from definitionPayload
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderPostma committed Jun 24, 2024
1 parent a44e45c commit 9573ced
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/pd-manager/src/agent/PDManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ export class PDManager implements IAgentPlugin {
existingItem.definitionId = definitionItem.definitionId
existingItem.version = version ?? existingItem.version ?? '1'
existingItem.tenantId = definitionItem.tenantId
existingItem.name = definitionItem.name
existingItem.purpose = definitionItem.purpose
existingItem.name = definitionItem.definitionPayload.name ?? definitionItem.name
existingItem.purpose = definitionItem.definitionPayload.purpose ?? definitionItem.purpose
existingItem.definitionPayload = definitionItem.definitionPayload

return await this.store.updateDefinition(existingItem)
Expand Down

0 comments on commit 9573ced

Please sign in to comment.