1
0
Fork 0
mirror of synced 2024-07-14 18:55:45 +12:00

Fix types

This commit is contained in:
Adria Navarro 2023-08-09 14:08:54 +03:00
parent 63bb989564
commit dbbe9ff0ac

View file

@ -44,7 +44,7 @@ export async function save(ctx: any) {
}
// if the table obj had an _id then it will have been retrieved
let oldTable
let oldTable: Table | undefined
if (ctx.request.body && ctx.request.body._id) {
oldTable = await sdk.tables.getTable(ctx.request.body._id)
}