Skip to content

Commit

Permalink
added database changes to body schema
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienR1 committed Dec 4, 2023
1 parent 8675ec2 commit 5cd6a11
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Binary file added bun.lockb
Binary file not shown.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"bench": "bun ./src/**/*.bench.ts"
},
"dependencies": {
"@substreams/sink-database-changes": "^0.3.0",
"@substreams/sink-entity-changes": "^0.3.4",
"p-queue": "latest",
"substreams-sink": "^0.13.4",
Expand Down
3 changes: 2 additions & 1 deletion src/auth/schemas.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { DatabaseChanges } from "@substreams/sink-database-changes/zod";
import { EntityChanges } from "@substreams/sink-entity-changes/zod";
import z from "zod";

Expand Down Expand Up @@ -32,7 +33,7 @@ export const PayloadBody = z.object({
}),
clock: ClockSchema,
manifest: ManifestSchema,
data: EntityChanges,
data: EntityChanges.or(DatabaseChanges),
});
export type PayloadBody = z.infer<typeof PayloadBody>;

Expand Down

0 comments on commit 5cd6a11

Please sign in to comment.