質問編集履歴

1

ご指摘頂いた誤植を訂正

2021/06/26 08:50

投稿

hiro_ike
hiro_ike

スコア48

test CHANGED
File without changes
test CHANGED
@@ -200,13 +200,13 @@
200
200
 
201
201
  app.put('/logs/:id', (req, res) => {
202
202
 
203
- if(req.body.readyToEat === 'on'){
203
+ if(req.body.shipIsBroken === 'on'){
204
-
204
+
205
- req.body.readyToEat = true;
205
+ req.body.shipIsBroken = true;
206
206
 
207
207
  } else {
208
208
 
209
- req.body.readyToEat = false;
209
+ req.body.shipIsBroken = false;
210
210
 
211
211
  }
212
212