正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -54,7 +54,7 @@ recordInfoController.prototype.stopRecording = async(ctx,next)=>{ | @@ -54,7 +54,7 @@ recordInfoController.prototype.stopRecording = async(ctx,next)=>{ | ||
54 | const body = ctx.request.body; | 54 | const body = ctx.request.body; |
55 | body.id = uuid.db32() | 55 | body.id = uuid.db32() |
56 | body.createTime = new Date().getTime(); | 56 | body.createTime = new Date().getTime(); |
57 | - let old = await recordStatus.findOne({where:{channel:channel,status:0}}) | 57 | + let old = await recordStatus.findOne({where:{channel:channel,status:1}}) |
58 | if(old){ | 58 | if(old){ |
59 | throw new Error('没有正在录制的课堂') | 59 | throw new Error('没有正在录制的课堂') |
60 | } | 60 | } |
-
请 注册 或 登录 后发表评论