Skip to content

Commit

Permalink
Comment options and turn into patch
Browse files Browse the repository at this point in the history
  • Loading branch information
cregourd committed Nov 18, 2024
1 parent b9a2d4c commit 36bb9da
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .changeset/blue-carrots-pump.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
"@premieroctet/next-admin": minor
"@premieroctet/next-admin": patch
---

Add where clause to model options
10 changes: 5 additions & 5 deletions apps/example/options.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ export const options: NextAdminOptions = {
],
search: ["name", "email", "role"],
copy: ["email"],
where: [{
role: {
equals: "USER",
},
}],
// where: [{
// role: {
// equals: "USER",
// },
// }],
filters: [
{
name: "is Admin",
Expand Down

0 comments on commit 36bb9da

Please sign in to comment.