Skip to content

Commit

Permalink
IMN-595: update clientId query in authorization-updater (#814)
Browse files Browse the repository at this point in the history
  • Loading branch information
AsterITA authored Sep 24, 2024
1 parent d0af591 commit d8c4444
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions packages/authorization-updater/src/readModelService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,7 @@ export function readModelServiceBuilder(

async getClientsIdsFromPurpose(purposeId: PurposeId): Promise<ClientId[]> {
const data = await clients
.find(
{
$or: [
{
"data.purposes.purpose.purposeId": purposeId,
},
{
"data.purposes": purposeId,
},
],
},
{ projection: { data: true } }
)
.find({ "data.purposes": purposeId }, { projection: { data: true } })
.map((c) => c.data)
.toArray();

Expand Down

0 comments on commit d8c4444

Please sign in to comment.