diff --git a/db/schedule.db.js b/db/schedule.db.js index 436c02d..d3a598c 100644 --- a/db/schedule.db.js +++ b/db/schedule.db.js @@ -64,7 +64,7 @@ const getScheduleByIdDb = async (id) => { }; const insertScheduleDb = async (store) => { - const nextDays = Number(store.next_day ?? 0); + const nextDays = Number(store.next_day ?? 0); // default 0 kalau tidak diisi const insertedRecords = []; for (let i = 0; i <= nextDays; i++) { diff --git a/validate/shift.schema.js b/validate/shift.schema.js index 8a9bc0e..4751778 100644 --- a/validate/shift.schema.js +++ b/validate/shift.schema.js @@ -36,7 +36,6 @@ const updateShiftSchema = Joi.object({ .messages({ "string.pattern.base": "end_time harus dalam format HH:mm atau HH:mm:ss", }), - is_active: Joi.boolean().optional() }).min(1); module.exports = {