Skip to content

Commit

Permalink
feat: add verified field to SpacesWhere (#914)
Browse files Browse the repository at this point in the history
* feat: add `verified` field to SpacesWhere

* fix: use strict equality

* fix: remove redundant check
  • Loading branch information
wa0x6e committed Aug 26, 2024
1 parent 1916904 commit 45354da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/graphql/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ export function buildWhereQuery(
export async function fetchSpaces(args) {
const { first = 20, skip = 0, where = {} } = args;

const fields = { id: 'string', created: 'number' };
const fields = { id: 'string', created: 'number', verified: 'boolean' };

if ('controller' in where) {
if (!where.controller) return [];
Expand Down
1 change: 1 addition & 0 deletions src/graphql/schema.gql
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ input SpaceWhere {
strategy: String
plugin: String
controller: String
verified: Boolean
}

input RankingWhere {
Expand Down

0 comments on commit 45354da

Please sign in to comment.