1
0
Fork 0
mirror of synced 2024-07-07 07:15:43 +12:00

Making sure single table get also includes sourceId.

This commit is contained in:
mike12345567 2023-10-25 19:07:51 +01:00
parent 455b26bac9
commit fd0d8f17f2

View file

@ -67,7 +67,7 @@ export async function getTable(tableId: string): Promise<Table> {
const table = await getExternalTable(datasourceId!, tableName!)
return { ...table, sql: isSQL(datasource) }
} else {
return db.get(tableId)
return processInternalTable(await db.get<Table>(tableId))
}
}