Skip to content

Commit cae822a

Browse files
committed
fix(query): table names for allow list records with proof
1 parent cc05f4f commit cae822a

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

src/graphql/schemas/args/baseArgs.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ export function withPagination<TItem extends ClassType>(TItemClass: TItem) {
1313
@Field(() => Int, { nullable: true })
1414
first?: number;
1515

16-
@Field(() => Int, { nullable: true })
17-
first?: number;
18-
1916
@Field(() => Int, { nullable: true })
2017
offset?: number;
2118
}

src/graphql/schemas/resolvers/allowlistRecordResolver.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,7 @@ const AllowlistRecordBaseResolver = createBaseResolver("allowlistRecord");
1212
class AllowlistRecordResolver extends AllowlistRecordBaseResolver {
1313
@Query(() => GetAllowlistRecordResponse)
1414
async allowlistRecords(@Args() args: GetAllowlistRecordsArgs) {
15-
const res = await this.getAllowlistRecords(args);
16-
17-
const data = Array.isArray(res) ? res : [];
18-
19-
return { data, count: data.length };
15+
return await this.getAllowlistRecords(args);
2016
}
2117
}
2218

src/services/SupabaseCachingService.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ export class SupabaseCachingService {
9090
>(tableName: T, args: BaseArgs<A>) {
9191
switch (tableName) {
9292
case "allowlist_records":
93+
case "claimable_fractions_with_proofs":
9394
return this.db
9495
.selectFrom("claimable_fractions_with_proofs")
9596
.selectAll();
@@ -152,6 +153,7 @@ export class SupabaseCachingService {
152153
>(tableName: T, args: BaseArgs<A>) {
153154
switch (tableName) {
154155
case "allowlist_records":
156+
case "claimable_fractions_with_proofs":
155157
return this.db
156158
.selectFrom("claimable_fractions_with_proofs")
157159
.select((expressionBuilder) => {

0 commit comments

Comments
 (0)