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.
All checks were successful
Main / build-and-push-docker-image (20.x) (push) Successful in 4m23s

This commit is contained in:
2026-01-26 21:28:18 -05:00
parent 8157ca00a8
commit f72b04d49b
4 changed files with 4 additions and 4 deletions

View File

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

View File

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

View File

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

View File

@@ -3,7 +3,7 @@ import { gql } from "@urql/core";
const increment = gql`
mutation increment(
$command: Boolean
$link: Boolean
$link: Int
$trigger: Boolean
$mutationKey: String
) {