1
0
Fork 0
mirror of synced 2024-07-11 01:06:04 +12:00

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) { if (ctx.params?.sourceId) {
return 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 // now check for old way of specifying table ID
if (ctx.params?.tableId) { if (ctx.params?.tableId) {
return 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 // now check if a specific view name
if (ctx.params?.viewName) { if (ctx.params?.viewName) {
return ctx.params.viewName return ctx.params.viewName

View file

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