@@ -16,7 +16,7 @@ class PersonroomtalkController extends Controller {
}
async countroom() {
- const res = await this.service.countroom(this.ctx.query);
+ const res = await this.service.countroom();
this.ctx.ok({ total: res });
@@ -17,8 +17,8 @@ class PersonroomService extends CrudService {
return talk.delete();
- async countroom(query) {
- const total = await this.model.count({ pr_id: query.qr_id });
+ async countroom() {
+ const total = await this.model.count();
return total;