Fix middleware usage

This commit is contained in:
Adria Navarro 2023-07-31 14:16:38 +02:00
parent b3b4a6a177
commit 1d13b49e86
2 changed files with 3 additions and 4 deletions

View File

@ -176,7 +176,7 @@ router
"/api/:tableId/rows", "/api/:tableId/rows",
paramResource("tableId"), paramResource("tableId"),
authorized(PermissionType.TABLE, PermissionLevel.WRITE), authorized(PermissionType.TABLE, PermissionLevel.WRITE),
noViewData(), noViewData,
rowController.save rowController.save
) )
/** /**
@ -191,7 +191,7 @@ router
"/api/:tableId/rows", "/api/:tableId/rows",
paramResource("tableId"), paramResource("tableId"),
authorized(PermissionType.TABLE, PermissionLevel.WRITE), authorized(PermissionType.TABLE, PermissionLevel.WRITE),
noViewData(), noViewData,
rowController.patch rowController.patch
) )
/** /**
@ -302,7 +302,7 @@ router
"/api/v2/views/:viewId/rows", "/api/v2/views/:viewId/rows",
paramResource("viewId"), paramResource("viewId"),
authorized(PermissionType.VIEW, PermissionLevel.WRITE), authorized(PermissionType.VIEW, PermissionLevel.WRITE),
trimViewRowInfo(), trimViewRowInfo,
rowController.save rowController.save
) )

View File

@ -16,7 +16,6 @@ import {
FieldType, FieldType,
SortType, SortType,
SortOrder, SortOrder,
PatchRowRequest,
} from "@budibase/types" } from "@budibase/types"
import { import {
expectAnyInternalColsAttributes, expectAnyInternalColsAttributes,