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
All checks were successful
Main / build-and-push-docker-image (20.x) (push) Successful in 4m23s
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -3,7 +3,7 @@ import { gql } from "@urql/core";
|
||||
const increment = gql`
|
||||
mutation increment(
|
||||
$command: Boolean
|
||||
$link: Boolean
|
||||
$link: Int
|
||||
$trigger: Boolean
|
||||
$mutationKey: String
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user