repair: shift db & roles

This commit is contained in:
Muhammad Afif
2025-10-13 11:52:09 +07:00
parent 8de83c2716
commit 9b8cb9d752
5 changed files with 60 additions and 111 deletions

View File

@@ -1,7 +1,7 @@
const {
getAllShiftDb,
getShiftByIdDb,
createShiftDB,
insertShiftDb,
updateShiftDb,
deleteShiftDb
} = require('../db/shift.db');
@@ -40,7 +40,7 @@ class ShiftService {
try {
if (!data || typeof data !== 'object') data = {};
const result = await createShiftDB(data);
const result = await insertShiftDb(data);
return result;
} catch (error) {