Further PR comments.
This commit is contained in:
parent
567d9eeafe
commit
d6da826c9f
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue