diff --git a/packages/server/src/api/controllers/row/utils.ts b/packages/server/src/api/controllers/row/utils.ts index 157f18e231..e85ec4553c 100644 --- a/packages/server/src/api/controllers/row/utils.ts +++ b/packages/server/src/api/controllers/row/utils.ts @@ -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 diff --git a/packages/types/src/documents/document.ts b/packages/types/src/documents/document.ts index 75f55e1367..03e01907b8 100644 --- a/packages/types/src/documents/document.ts +++ b/packages/types/src/documents/document.ts @@ -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