Further PR comments.

This commit is contained in:
mike12345567 2023-08-10 11:07:25 +01:00
parent 567d9eeafe
commit d6da826c9f
2 changed files with 4 additions and 5 deletions

View File

@ -49,14 +49,14 @@ export function getTableId(ctx: Ctx) {
if (ctx.params?.sourceId) {
return ctx.params.sourceId
}
// check body for a table ID
if (ctx.request.body?.tableId) {
return ctx.request.body.tableId
}
// now check for old way of specifying table ID
if (ctx.params?.tableId) {
return ctx.params.tableId
}
// check body for a table ID
if (ctx.request.body?.tableId) {
return ctx.request.body.tableId
}
// now check if a specific view name
if (ctx.params?.viewName) {
return ctx.params.viewName

View File

@ -37,7 +37,6 @@ export enum DocumentType {
USER_FLAG = "flag",
AUTOMATION_METADATA = "meta_au",
AUDIT_LOG = "al",
VIEW = "awd",
}
// these documents don't really exist, they are part of other