0
当从窗体(req.body)获取值时,是否必须运行parseInt或者如果值为空字符串,我可以告诉sequelize将其设置为0吗?sequelize parseint INTEGER
使用:
req.body.price_low_day = parseInt(req.body.price_low_day) || 0; // want to get rid of this row.
room.update(req.body) ?