mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
markdown语法增强,错误修复
This commit is contained in:
1 parent
4b3c10b4eb
commit
a29b801e72
22 files changed
+311
-200
No files matched your search
@@ -1,5 +1,11 @@
|
||||
const { ValidationError } = require('../error');
|
||||
|
||||
/**
|
||||
* @param {import('mongodb').Cursor} cursor
|
||||
* @param {number} page
|
||||
* @param {number} pageSize
|
||||
* @returns {Promise<Array[]>} pageDocs numPages count
|
||||
*/
|
||||
async function paginate(cursor, page, pageSize) {
|
||||
if (page <= 0) throw new ValidationError('page');
|
||||
const [count, pageDocs] = await Promise.all([
|
||||
|
||||
Reference in new issue
Block a user