Skip to content
This repository has been archived by the owner on Jul 7, 2021. It is now read-only.

Commit

Permalink
fix(ark): allow type and sub-type of 0
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Faust committed Sep 3, 2020
1 parent 38acf97 commit 7225d2c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/platform-sdk-ark/src/services/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,11 @@ export class ClientService implements Contracts.ClientService {
}
}

if (result.body.entityType && result.body.entitySubType && result.body.entityAction) {
const hasEntityType: boolean = result.body.entityType !== undefined;
const hasEntitySubType: boolean = result.body.entitySubType !== undefined;
const hasEntityAction: boolean = result.body.entityAction !== undefined;

if (hasEntityType && hasEntitySubType && hasEntityAction) {
result.body.type = 6;
result.body.typeGroup = 2;

Expand Down

0 comments on commit 7225d2c

Please sign in to comment.