From 50e153df7cf2699c9107c8134935e3a09a3ef972 Mon Sep 17 00:00:00 2001 From: ekzyis Date: Sun, 20 Oct 2024 01:25:25 +0200 Subject: [PATCH] Fix territory unarchive schema validation --- api/resolvers/sub.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/resolvers/sub.js b/api/resolvers/sub.js index 1f49e3536..092798698 100644 --- a/api/resolvers/sub.js +++ b/api/resolvers/sub.js @@ -260,7 +260,7 @@ export default { const { name } = data - await ssValidate(territorySchema, data, { models, me, sub: { name } }) + await ssValidate(territorySchema, data, { models, me }) const oldSub = await models.sub.findUnique({ where: { name } }) if (!oldSub) {