Commit 4d35e6ae by wkliang

change default offset

parent aee67c07
...@@ -4,7 +4,7 @@ class CollectDao extends Dao { ...@@ -4,7 +4,7 @@ class CollectDao extends Dao {
super(Dao.getModelName(CollectDao)); super(Dao.getModelName(CollectDao));
} }
async getByUid (uid, page = 1, offset = 12) { async getByUid (uid, page = 1, offset = 9) {
return await this.model.findAndCountAll({ return await this.model.findAndCountAll({
where: { user_id: uid, c_type: 1 }, where: { user_id: uid, c_type: 1 },
limit: 9, limit: 9,
......
...@@ -4,7 +4,7 @@ class CollectService extends ServiceBase { ...@@ -4,7 +4,7 @@ class CollectService extends ServiceBase {
super("askfor", ServiceBase.getDaoName(CollectService)); super("askfor", ServiceBase.getDaoName(CollectService));
} }
async getByUid (uid, page = 1, offset = 12) { async getByUid (uid, page = 1, offset = 9) {
return await this.dao.getByUid(uid, page, offset); return await this.dao.getByUid(uid, page, offset);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment