Skip to content

Commit

Permalink
feat(2739): review updates and suggestions from Blair.
Browse files Browse the repository at this point in the history
  • Loading branch information
koekiebox committed Jun 5, 2024
1 parent 695e119 commit 2c96a2e
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions packages/backend/src/open_payments/wallet_address/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,13 +150,7 @@ async function createWalletAddress(
itm.fieldKey.trim().length == 0 || itm.fieldValue.trim().length == 0
)
})
// set defaults:
const now = new Date()
for (const prop of addProperties) {
prop.walletAddressId = wallet.id
prop.createdAt = now
prop.updatedAt = now
}
addProperties.forEach((itm) => (itm.walletAddressId = wallet.id))
if (addProperties.length) {
await WalletAddressAdditionalProperty.query(deps.knex).insert(
addProperties
Expand Down

0 comments on commit 2c96a2e

Please sign in to comment.