core&ui: remove deprecated apis

This commit is contained in:
undefined committed 2025-03-28 23:49:37 +08:00
1 parent 574d45f914
commit baa9436c30
26 files changed
+90 -249

No files matched your search

+2 -2
View File
@@ -1,6 +1,6 @@
import {
_, Context, DiscussionNotFoundError, DocumentModel, Filter,
Handler, NumberKeys, ObjectId, OplogModel, paginate,
Handler, NumberKeys, ObjectId, OplogModel,
param, PRIV, Types, UserModel,
} from 'hydrooj';
@@ -116,7 +116,7 @@ class BlogUserHandler extends BlogHandler {
@param('uid', Types.Int)
@param('page', Types.PositiveInt, true)
async get(domainId: string, uid: number, page = 1) {
const [ddocs, dpcount] = await paginate(
const [ddocs, dpcount] = await this.ctx.db.paginate(
BlogModel.getMulti({ owner: uid }),
page,
10,