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

View File

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