From f72b04d49bdcccc00585af21f8d9e2cae3ab280d Mon Sep 17 00:00:00 2001 From: Lucid Date: Mon, 26 Jan 2026 21:28:18 -0500 Subject: [PATCH] Updated the increment mutation to take a number instead of a boolean. For instances when more than 1 group is detected. Like when parsing embeds and captions. --- src/bot/features/metaBanlist.ts | 2 +- src/bot/features/tiktokBanlist.ts | 2 +- src/bot/features/twitterBanlist.ts | 2 +- src/lib/graphql/mutations/incrementMutation.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/bot/features/metaBanlist.ts b/src/bot/features/metaBanlist.ts index 92509da..600bc33 100644 --- a/src/bot/features/metaBanlist.ts +++ b/src/bot/features/metaBanlist.ts @@ -29,7 +29,7 @@ feature.hears( ctx.msg.delete(); return await urql - .mutation(increment, { link: true, mutationKey }) + .mutation(increment, { link: 1, mutationKey }) .toPromise() .then(async () => { if (ctx.msg && ctx.chat) { diff --git a/src/bot/features/tiktokBanlist.ts b/src/bot/features/tiktokBanlist.ts index 34f0c0f..21b9ad1 100644 --- a/src/bot/features/tiktokBanlist.ts +++ b/src/bot/features/tiktokBanlist.ts @@ -29,7 +29,7 @@ feature.hears( ctx.msg.delete(); return await urql - .mutation(increment, { link: true, mutationKey }) + .mutation(increment, { link: 1, mutationKey }) .toPromise() .then(async () => { if (ctx.msg && ctx.chat) { diff --git a/src/bot/features/twitterBanlist.ts b/src/bot/features/twitterBanlist.ts index e8c4fa5..4d8ce08 100644 --- a/src/bot/features/twitterBanlist.ts +++ b/src/bot/features/twitterBanlist.ts @@ -29,7 +29,7 @@ feature.hears( ctx.msg.delete(); return await urql - .mutation(increment, { link: true, mutationKey }) + .mutation(increment, { link: 1, mutationKey }) .toPromise() .then(async () => { if (ctx.msg && ctx.chat) { diff --git a/src/lib/graphql/mutations/incrementMutation.ts b/src/lib/graphql/mutations/incrementMutation.ts index 3960b1e..3d21869 100644 --- a/src/lib/graphql/mutations/incrementMutation.ts +++ b/src/lib/graphql/mutations/incrementMutation.ts @@ -3,7 +3,7 @@ import { gql } from "@urql/core"; const increment = gql` mutation increment( $command: Boolean - $link: Boolean + $link: Int $trigger: Boolean $mutationKey: String ) {