Showing
1 changed file
with
2 additions
and
0 deletions
... | @@ -117,7 +117,9 @@ exports.addChallenge = async (ctx) => { | ... | @@ -117,7 +117,9 @@ exports.addChallenge = async (ctx) => { |
117 | await session.save(); | 117 | await session.save(); |
118 | s_date = new Date(e_date); | 118 | s_date = new Date(e_date); |
119 | s_date.setMinutes(s_date.getMinutes() + 1); | 119 | s_date.setMinutes(s_date.getMinutes() + 1); |
120 | + await challenge.updateOne({ status: status }); | ||
120 | } | 121 | } |
122 | + | ||
121 | ctx.body = challenge.serialize(); | 123 | ctx.body = challenge.serialize(); |
122 | } catch (e) { | 124 | } catch (e) { |
123 | ctx.throw(500, e); | 125 | ctx.throw(500, e); | ... | ... |
-
Please register or login to post a comment