Skip to content

Commit 3f9efd6

Browse files
committed
format
1 parent 4bc28a6 commit 3f9efd6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/convex-helpers/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ You can take in extra arguments to a custom function by specifying the type of a
8181

8282
```ts
8383
const myQueryBuilder = customQuery(query, {
84-
args: { },
84+
args: {},
8585
input: async (ctx, args, { role }: { role: "admin" | "user" }) => {
8686
const user = await getUser(ctx);
8787
if (role === "admin" && user.role !== "admin") {
@@ -91,12 +91,12 @@ const myQueryBuilder = customQuery(query, {
9191
throw new Error("You must be logged in to access this query");
9292
}
9393
return { ctx: { user }, args: {} };
94-
}
94+
},
9595
});
9696

9797
const myAdminQuery = myQueryBuilder({
9898
role: "admin",
99-
args: { },
99+
args: {},
100100
handler: async (ctx, args) => {
101101
// ...
102102
},

0 commit comments

Comments
 (0)