Skip to content

Commit

Permalink
Merge pull request #993 from sinasab/sina/fix-api-functions-select-ex…
Browse files Browse the repository at this point in the history
…ample

fix: typo in api-functions example in docs
  • Loading branch information
kyscott18 authored Jul 23, 2024
2 parents 5c66607 + a0b1190 commit ee61372
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/pages/docs/query/api-functions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ import { ponder } from "@/generated";
ponder.get("/account/:address", async (c) => {
const address = c.req.param("address");

const account = await c.db.select(c.tables.Account).limit(1);
const account = await c.db.select().from(c.tables.Account).limit(1);

return c.json(account);
});
Expand Down

0 comments on commit ee61372

Please sign in to comment.