Fix types

This commit is contained in:
Adria Navarro 2023-08-09 14:08:54 +03:00
parent 63bb989564
commit dbbe9ff0ac
1 changed files with 1 additions and 1 deletions

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 // 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) { if (ctx.request.body && ctx.request.body._id) {
oldTable = await sdk.tables.getTable(ctx.request.body._id) oldTable = await sdk.tables.getTable(ctx.request.body._id)
} }