Skip to content

Commit

Permalink
Merge pull request #39 from hypercerts-org/feat/supabase_ci_and_db_tw…
Browse files Browse the repository at this point in the history
…eaks

chore(fix): cicd and ghost
  • Loading branch information
bitbeckers authored Apr 24, 2024
2 parents ea1c7dd + 2e584da commit acc84ec
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/supabase-ci-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Verify generated types are checked in
run: |
supabase gen types typescript --local > src/types/database-generated.types.ts
if ! git diff --ignore-space-at-eol --exit-code --quiet types.gen.ts; then
if ! git diff --ignore-space-at-eol --exit-code --quiet ./src/types/database-generated.types.ts; then
echo "Detected uncommitted changes after build. See status below:"
git diff
exit 1
Expand Down
3 changes: 2 additions & 1 deletion src/indexer/indexSupportedSchemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { getSupportedSchemas } from "@/storage/getSupportedSchemas";
import { IndexerConfig } from "@/types/types";
import { fetchSchemaData } from "@/fetching/fetchSchemaData";
import { Tables } from "@/types/database.types";
import { storeSupportedSchemas } from "@/storage/storeSupportedSchemas";

/*
* This function indexes the logs of the ClaimStored event emitted by the HypercertMinter contract. Based on the last
Expand Down Expand Up @@ -47,7 +48,7 @@ export const indexSupportedSchemas = async ({
schema !== null && schema !== undefined,
);

const res = await storeSupporedSchemas({
const res = await storeSupportedSchemas({
supportedSchemas: schemaData,
});

Expand Down
8 changes: 4 additions & 4 deletions src/types/database-generated.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -445,9 +445,9 @@ export type Database = {
allow_list_root: string
}[]
}
get_attestations_by_claim_id: {
get_attestations_for_claim: {
Args: {
p_claim_id: string
claim_id: string
}
Returns: {
id: string
Expand All @@ -463,7 +463,7 @@ export type Database = {
block_timestamp: number
}[]
}
get_attested_hypercerts: {
get_attested_claims: {
Args: Record<PropertyKey, never>
Returns: {
id: string
Expand Down Expand Up @@ -504,7 +504,7 @@ export type Database = {
value: number | null
}
}
get_unattested_hypercerts: {
get_unattested_claims: {
Args: Record<PropertyKey, never>
Returns: {
id: string
Expand Down

0 comments on commit acc84ec

Please sign in to comment.