middleware fix
This commit is contained in:
@@ -162,6 +162,11 @@ export function auditMiddleware(
|
||||
}
|
||||
|
||||
const action = methodToAction(req.method);
|
||||
|
||||
if (action === 'READ' && allowedTables.includes(tableName)) {
|
||||
return;
|
||||
}
|
||||
|
||||
const recordId = extractRecordId(req);
|
||||
const success = res.statusCode >= 200 && res.statusCode < 400;
|
||||
const description = generateDescription(action, tableName, recordId);
|
||||
|
||||
Reference in New Issue
Block a user