Skip to content

Commit

Permalink
Merge pull request #104 from myarete/patch-1
Browse files Browse the repository at this point in the history
chore: fix syntax in README.md example
  • Loading branch information
LucianBuzzo committed Apr 12, 2024
2 parents 3100169 + b0c7a95 commit 882f655
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ For accessing the context of a Prisma query, we recommend using a package like [
import { setup } from "@cerebruminc/yates";
import { PrismaClient } from "@prisma/client";


const prisma = new PrismaClient();

const client = await setup({
Expand Down Expand Up @@ -85,7 +84,7 @@ const client = await setup({
},
operation: "DELETE",
},
}
},
User: {
updateOwnUser: {
description: "Update own user",
Expand All @@ -95,8 +94,7 @@ const client = await setup({
},
}
}

})
}),
// Return a mapping of user roles and abilities.
// This function is paramaterised with a list of all CRUD abilities that have been
// automatically generated by Yates, as well as any customAbilities that have been defined.
Expand All @@ -117,8 +115,6 @@ const client = await setup({
}
const { user } = ctx;

let role = user.role;

const role = user.role

return {
Expand Down

0 comments on commit 882f655

Please sign in to comment.