utils: add STATUS_SHORT_TEXTS

This commit is contained in:
undefined committed 2021-05-17 01:01:26 +08:00
1 parent 218a14b91e
commit 625478ac3a
5 files changed
+18 -3

No files matched your search

+1 -1
View File
@@ -114,7 +114,7 @@ export class ProblemModel {
return document.deleteSub(domainId, document.TYPE_PROBLEM, pid, key, values);
}
static inc(domainId: string, _id: number, field: NumberKeys<ProblemDoc>, n: number): Promise<ProblemDoc> {
static inc(domainId: string, _id: number, field: NumberKeys<ProblemDoc> | string, n: number): Promise<ProblemDoc> {
return document.inc(domainId, document.TYPE_PROBLEM, _id, field, n);
}