fix: fix incorrect pending number

This commit is contained in:
Shigma 2022-11-01 01:14:23 +08:00
parent f1e676d82c
commit 87b5e2218f
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
{
"name": "koishi-plugin-novelai",
"description": "Generate images by NovelAI",
"version": "1.12.5",
"version": "1.12.6",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
"files": [

View File

@ -210,8 +210,8 @@ export function apply(ctx: Context, config: Config) {
}
}
session.send(globalTasks.size > 1
? session.text('.pending', [globalTasks.size - 1])
session.send(globalTasks.size
? session.text('.pending', [globalTasks.size])
: session.text('.waiting'))
globalTasks.add(id)