Redone
This commit is contained in:
@@ -477,6 +477,7 @@ export default async function resourceRoutes(server: FastifyInstance) {
|
|||||||
|
|
||||||
// UPDATE (inkl. Soft-Delete/Archive)
|
// UPDATE (inkl. Soft-Delete/Archive)
|
||||||
server.put("/resource/:resource/:id", async (req, reply) => {
|
server.put("/resource/:resource/:id", async (req, reply) => {
|
||||||
|
try {
|
||||||
const {resource, id} = req.params as { resource: string; id: string }
|
const {resource, id} = req.params as { resource: string; id: string }
|
||||||
const body = req.body as Record<string, any>
|
const body = req.body as Record<string, any>
|
||||||
|
|
||||||
@@ -529,6 +530,10 @@ export default async function resourceRoutes(server: FastifyInstance) {
|
|||||||
}*/
|
}*/
|
||||||
|
|
||||||
return updated
|
return updated
|
||||||
|
} catch (err) {
|
||||||
|
console.log("ERROR /resource/projects/:id", err)
|
||||||
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user