Skip to content

Commit

Permalink
refactor: use new query syntax for arrays
Browse files Browse the repository at this point in the history
Signed-off-by: Timo Glastra <[email protected]>
  • Loading branch information
TimoGlastra committed Jul 12, 2021
1 parent 1d5636c commit 0d021f0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/modules/routing/repository/MediationRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,8 @@ export class MediationRepository extends Repository<MediationRecord> {
}

public getSingleByRecipientKey(recipientKey: string) {
// TODO: would be nice if the query method could automatically handle arrays
const tag = `recipientKey:${recipientKey}`

return this.getSingleByQuery({
[tag]: true,
recipientKeys: [recipientKey],
})
}

Expand Down

0 comments on commit 0d021f0

Please sign in to comment.