Skip to content

Commit

Permalink
feat(2739): review updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
koekiebox committed Jun 5, 2024
1 parent 0e107cb commit ad3f3bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions packages/backend/src/graphql/resolvers/wallet_address.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ export const createWalletAddress: MutationResolvers<ApolloContext>['createWallet
const walletAddressService = await ctx.container.use('walletAddressService')
const addProps: WalletAddressAdditionalProperty[] = []
for (const inputAddProp of args.input.additionalProperties) {
const toAdd: WalletAddressAdditionalProperty =
new WalletAddressAdditionalProperty()
const toAdd = new WalletAddressAdditionalProperty()
toAdd.fieldKey = inputAddProp.key
toAdd.fieldValue = inputAddProp.value
toAdd.visibleInOpenPayments = inputAddProp.visibleInOpenPayments
Expand Down
4 changes: 2 additions & 2 deletions packages/backend/src/open_payments/wallet_address/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,12 +219,12 @@ async function getWalletAdditionalProperties(
includeVisibleOnlyAddProps: boolean
): Promise<WalletAddressAdditionalProperty[] | undefined> {
if (includeVisibleOnlyAddProps) {
return await WalletAddressAdditionalProperty.query(deps.knex).where({
return WalletAddressAdditionalProperty.query(deps.knex).where({
walletAddressId,
visibleInOpenPayments: true
})
} else {
return await WalletAddressAdditionalProperty.query(deps.knex).where({
return WalletAddressAdditionalProperty.query(deps.knex).where({
walletAddressId
})
}
Expand Down

0 comments on commit ad3f3bf

Please sign in to comment.