Skip to content

Commit

Permalink
fix: turn off block hash and output for now
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelcr committed Jun 16, 2024
1 parent 4ee1428 commit e94b27d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/pg/pg-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -545,9 +545,9 @@ export class PgStore extends BasePgStore {
: sql``
}
${
filters?.genesis_block_hash
/*filters?.genesis_block_hash
? sql`AND gen_l.block_hash = ${filters.genesis_block_hash}`
: sql``
:*/ sql``
}
${
filters?.from_genesis_block_height
Expand Down Expand Up @@ -600,7 +600,7 @@ export class PgStore extends BasePgStore {
${
filters?.mime_type?.length ? sql`AND i.mime_type IN ${sql(filters.mime_type)}` : sql``
}
${filters?.output ? sql`AND cur_l.output = ${filters.output}` : sql``}
${/*filters?.output ? sql`AND cur_l.output = ${filters.output}` : */ sql``}
${filters?.sat_rarity?.length ? sql`AND s.rarity IN ${sql(filters.sat_rarity)}` : sql``}
${filters?.sat_ordinal ? sql`AND i.ordinal_number = ${filters.sat_ordinal}` : sql``}
${
Expand Down Expand Up @@ -630,7 +630,7 @@ export class PgStore extends BasePgStore {
ORDER BY r.row_num ASC
`;
return {
total: total ?? results[0].total,
total: total ?? results[0]?.total ?? 0,
results: results ?? [],
};
});
Expand Down
4 changes: 2 additions & 2 deletions tests/api/inscriptions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2318,7 +2318,7 @@ describe('/inscriptions', () => {
expect(responseJson4.results[1].genesis_block_height).toBe(778575);
});

test('index filtered by block hash', async () => {
test.skip('index filtered by block hash', async () => {
await db.updateInscriptions(
new TestChainhookPayloadBuilder()
.apply()
Expand Down Expand Up @@ -2794,7 +2794,7 @@ describe('/inscriptions', () => {
expect(responseJson3.results[0].number).toBe(0);
});

test('index filtered by output', async () => {
test.skip('index filtered by output', async () => {
await db.updateInscriptions(
new TestChainhookPayloadBuilder()
.apply()
Expand Down

0 comments on commit e94b27d

Please sign in to comment.