Skip to content

Commit

Permalink
match GatewayController activity in OrgController v3
Browse files Browse the repository at this point in the history
  • Loading branch information
rustyjux committed Sep 10, 2024
1 parent 56ec50e commit af94576
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/controllers/v3/OrganizationController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import {
removeKeys,
transformAllRefID,
syncRecordsThrowErrors,
parseBlobString,
} from '../../batch/feed-worker';
import {
GroupAccessService,
Expand Down Expand Up @@ -266,8 +267,8 @@ export class OrganizationController extends Controller {
/**
* > `Required Scope:` Namespace.Assign
*
* @summary Get administration activity for gateways associated with this Organization Unit
* @param orgUnit
* @summary Get administration activity for gateways associated with this Organization
* @param org
* @param first
* @param skip
* @returns Activity[]
Expand Down Expand Up @@ -299,8 +300,9 @@ export class OrganizationController extends Controller {
);

return transformActivity(records)
.map((o) => removeKeys(o, ['id']))
.map((o) => removeEmpty(o))
.map((o) => transformAllRefID(o, ['blob']))
.map((o) => parseJsonString(o, ['blob']));
.map((o) => parseJsonString(o, ['context']))
.map((o) => parseBlobString(o));
}
}

0 comments on commit af94576

Please sign in to comment.