質問編集履歴
1
ご指摘頂いた誤植を訂正
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.re
|
203
|
+
if(req.body.shipIsBroken === 'on'){
|
204
|
-
|
204
|
+
|
205
|
-
req.body.re
|
205
|
+
req.body.shipIsBroken = true;
|
206
206
|
|
207
207
|
} else {
|
208
208
|
|
209
|
-
req.body.re
|
209
|
+
req.body.shipIsBroken = false;
|
210
210
|
|
211
211
|
}
|
212
212
|
|