Skip to content

Commit

Permalink
fix query filter for memos
Browse files Browse the repository at this point in the history
  • Loading branch information
wkolod committed Oct 12, 2022
1 parent d299477 commit 488b8c0
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/api/akord/akord-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,12 +207,15 @@ export default class AkordApi extends Api {
let queryName = objectType.toLowerCase() + "sByDataRoomId";
const filter = objectType === "Membership"
? { status: { eq: "ACCEPTED" } }
: {
status: { ne: "REVOKED" },
and: {
status: { ne: "DELETED" }
}
};
: objectType === "Memo"
? {}
:
{
status: { ne: "REVOKED" },
and: {
status: { ne: "DELETED" }
}
};
const results = await this.paginatedQuery(
queryName,
queries[queryName],
Expand Down

0 comments on commit 488b8c0

Please sign in to comment.