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();
|
ctx.msg.delete();
|
||||||
|
|
||||||
return await urql
|
return await urql
|
||||||
.mutation(increment, { link: true, mutationKey })
|
.mutation(increment, { link: 1, mutationKey })
|
||||||
.toPromise()
|
.toPromise()
|
||||||
.then(async () => {
|
.then(async () => {
|
||||||
if (ctx.msg && ctx.chat) {
|
if (ctx.msg && ctx.chat) {
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ feature.hears(
|
|||||||
ctx.msg.delete();
|
ctx.msg.delete();
|
||||||
|
|
||||||
return await urql
|
return await urql
|
||||||
.mutation(increment, { link: true, mutationKey })
|
.mutation(increment, { link: 1, mutationKey })
|
||||||
.toPromise()
|
.toPromise()
|
||||||
.then(async () => {
|
.then(async () => {
|
||||||
if (ctx.msg && ctx.chat) {
|
if (ctx.msg && ctx.chat) {
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ feature.hears(
|
|||||||
ctx.msg.delete();
|
ctx.msg.delete();
|
||||||
|
|
||||||
return await urql
|
return await urql
|
||||||
.mutation(increment, { link: true, mutationKey })
|
.mutation(increment, { link: 1, mutationKey })
|
||||||
.toPromise()
|
.toPromise()
|
||||||
.then(async () => {
|
.then(async () => {
|
||||||
if (ctx.msg && ctx.chat) {
|
if (ctx.msg && ctx.chat) {
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import { gql } from "@urql/core";
|
|||||||
const increment = gql`
|
const increment = gql`
|
||||||
mutation increment(
|
mutation increment(
|
||||||
$command: Boolean
|
$command: Boolean
|
||||||
$link: Boolean
|
$link: Int
|
||||||
$trigger: Boolean
|
$trigger: Boolean
|
||||||
$mutationKey: String
|
$mutationKey: String
|
||||||
) {
|
) {
|
||||||
|
|||||||
Reference in New Issue
Block a user