From b0c7a956c3d9415d265f89fd5f928a63ea7b5f44 Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 10 Apr 2024 08:00:23 -0500 Subject: [PATCH] chore: fix syntax in README.md example --- README.md | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index e318acb..8808dfb 100644 --- a/README.md +++ b/README.md @@ -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({ @@ -85,7 +84,7 @@ const client = await setup({ }, operation: "DELETE", }, - } + }, User: { updateOwnUser: { description: "Update own user", @@ -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. @@ -117,8 +115,6 @@ const client = await setup({ } const { user } = ctx; - let role = user.role; - const role = user.role return {