From df262d077184db5ff84f451c34e083896beae289 Mon Sep 17 00:00:00 2001 From: Dominique Wirz Date: Wed, 22 May 2024 10:14:29 +0200 Subject: [PATCH] fix: pick required context properties for createRevision (#170) Co-authored-by: Dominique Wirz --- src/resolvers/mutations.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resolvers/mutations.ts b/src/resolvers/mutations.ts index d10634e..c8bdfba 100644 --- a/src/resolvers/mutations.ts +++ b/src/resolvers/mutations.ts @@ -316,7 +316,7 @@ const restore = async (model: EntityModel, { where }: { where: any }, ctx: FullC return entity.id; }; -export const createRevision = async (model: EntityModel, data: Entity, ctx: Context) => { +export const createRevision = async (model: EntityModel, data: Entity, ctx: Pick) => { if (model.updatable) { const revisionId = uuid(); const rootRevisionData: Entity = {