From e80bfa71228dc4fd431c47ff77ba50de3f59ebee Mon Sep 17 00:00:00 2001 From: 付智勇 <fuzhiyong@efangtec.com> Date: Mon, 18 Sep 2017 10:51:55 +0800 Subject: [PATCH] no message --- controller/recordInfoController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/recordInfoController.js b/controller/recordInfoController.js index 93fd624..660e765 100644 --- a/controller/recordInfoController.js +++ b/controller/recordInfoController.js @@ -54,7 +54,7 @@ recordInfoController.prototype.stopRecording = async(ctx,next)=>{ const body = ctx.request.body; body.id = uuid.db32() body.createTime = new Date().getTime(); - let old = await recordStatus.findOne({where:{channel:channel,status:0}}) + let old = await recordStatus.findOne({where:{channel:channel,status:1}}) if(old){ throw new Error('没有正在录制的课堂') } -- libgit2 0.24.0