From 3f5d456d321624d9e71aedd8aabe321725ee5c3d Mon Sep 17 00:00:00 2001 From: undefined Date: Mon, 17 May 2021 01:02:09 +0800 Subject: [PATCH] fix build --- packages/hydrooj/src/model/problem.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/hydrooj/src/model/problem.ts b/packages/hydrooj/src/model/problem.ts index d066cb680..52f18c451 100644 --- a/packages/hydrooj/src/model/problem.ts +++ b/packages/hydrooj/src/model/problem.ts @@ -115,7 +115,7 @@ export class ProblemModel { } static inc(domainId: string, _id: number, field: NumberKeys | string, n: number): Promise { - return document.inc(domainId, document.TYPE_PROBLEM, _id, field, n); + return document.inc(domainId, document.TYPE_PROBLEM, _id, field as any, n); } static count(domainId: string, query: FilterQuery) {