Changed types
This commit is contained in:
@@ -14,12 +14,14 @@ export default async function bankingRoutes(server: FastifyInstance) {
|
||||
console.log(body);
|
||||
|
||||
const {data,error} = await server.supabase.from("statementallocations").insert({
|
||||
//@ts-ignore
|
||||
...body.data,
|
||||
tenant: req.user.tenant_id,
|
||||
}).select()
|
||||
|
||||
await insertHistoryItem(server,{
|
||||
entity: "bankstatements",
|
||||
//@ts-ignore
|
||||
entityId: data.id,
|
||||
action: "created",
|
||||
created_by: req.user.user_id,
|
||||
|
||||
Reference in New Issue
Block a user