Updates
This commit is contained in:
@@ -18,6 +18,7 @@ export default async function checks<
|
||||
putMiddleware,
|
||||
deleteMiddleware,
|
||||
crudMiddleware,
|
||||
targetId,
|
||||
}: APIPathsCrudParams<T>): Promise<
|
||||
Pick<APIPathsCrudParams<T>, "query" | "body"> & {
|
||||
allowedTable: APIPathsParamsAllowedTable;
|
||||
@@ -126,6 +127,7 @@ export default async function checks<
|
||||
newQuery = await getMiddleware({
|
||||
query: newQuery || ({} as any),
|
||||
table,
|
||||
targetId,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -134,6 +136,7 @@ export default async function checks<
|
||||
body: newBody || ({} as any),
|
||||
query: newQuery || {},
|
||||
table,
|
||||
targetId,
|
||||
});
|
||||
|
||||
newBody = _.merge(newBody, middRes);
|
||||
@@ -144,6 +147,7 @@ export default async function checks<
|
||||
body: newBody || ({} as any),
|
||||
query: newQuery || {},
|
||||
table,
|
||||
targetId,
|
||||
});
|
||||
|
||||
newBody = _.merge(newBody, middRes);
|
||||
@@ -154,6 +158,7 @@ export default async function checks<
|
||||
body: newBody || ({} as any),
|
||||
query: newQuery || {},
|
||||
table,
|
||||
targetId,
|
||||
});
|
||||
|
||||
newBody = _.merge(newBody, middRes);
|
||||
|
||||
Reference in New Issue
Block a user