repair: shift db & roles
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user