diff --git a/src/modules/routing/repository/MediationRepository.ts b/src/modules/routing/repository/MediationRepository.ts index 41ecfed5d6..ec8f968102 100644 --- a/src/modules/routing/repository/MediationRepository.ts +++ b/src/modules/routing/repository/MediationRepository.ts @@ -13,11 +13,8 @@ export class MediationRepository extends Repository { } 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], }) }