fix: Agregar campo model a endpoints POST/PUT de impresoras
All checks were successful
build-and-deploy / build-and-deploy (push) Successful in 36s

This commit is contained in:
2025-11-25 13:37:04 -06:00
parent 84249a3565
commit 8378327950
2 changed files with 6 additions and 2 deletions

View File

@@ -5,10 +5,11 @@ export default defineEventHandler(async (event) => {
try {
const body = await readBody(event)
const { name, host, deviceId, timeout, isDefault } = body as {
const { name, host, deviceId, model, timeout, isDefault } = body as {
name: string
host: string
deviceId: string
model?: string
timeout?: number
isDefault?: boolean
}
@@ -24,6 +25,7 @@ export default defineEventHandler(async (event) => {
name,
host,
deviceId,
model,
timeout,
isDefault
})