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('没有正在录制的课堂') }