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 ) {