fix: update device service and handler

This commit is contained in:
riefive
2025-10-06 09:51:31 +07:00
parent 45ea70d415
commit ecdc5d80d9
3 changed files with 22 additions and 78 deletions
+6 -6
View File
@@ -1,5 +1,5 @@
import { createCrudHandler } from '~/handlers/_handler'
import { postDevice, patchDevice, removeDevice } from '~/services/device.service'
import { genCrudHandler } from '~/handlers/_handler'
import { create, update, remove } from '~/services/device.service'
export const {
recId,
@@ -14,8 +14,8 @@ export const {
handleActionEdit,
handleActionRemove,
handleCancelForm,
} = createCrudHandler({
post: postDevice,
patch: patchDevice,
remove: removeDevice,
} = genCrudHandler({
create,
update,
remove,
})