Skip to content

Commit 758c932

Browse files
committed
fix: reduce unneded logs
1 parent 2e3bc3b commit 758c932

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

adminforth/modules/restApi.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,9 @@ export async function interpretResource(
5353
[ActionCheckSource.CustomActionRequest]: ['show', 'edit', 'delete', 'create', 'filter'],
5454
}[source];
5555

56-
console.log('🎉🎉🎉 ', JSON.stringify(resource.options.allowedActions, null, 2));
57-
5856
await Promise.all(
5957
Object.entries(resource.options.allowedActions).map(
6058
async ([key, value]: [string, AllowedActionValue]) => {
61-
if (process.env.HEAVY_DEBUG) {
62-
console.log(`🪲🚥${resource.resourceId}: allowed ${key}: ${value}`)
63-
}
6459
if (!neededActions.includes(key as AllowedActionsEnum)) {
6560
allowedActions[key] = false;
6661
return;
@@ -69,7 +64,6 @@ export async function interpretResource(
6964
// if callable then call
7065
if (typeof value === 'function') {
7166
allowedActions[key] = await value({ adminUser, resource, meta, source, adminforth });
72-
console.log(`🪲🚥🚥${resource.resourceId}: allowed ${key} (function): ${allowedActions[key]}`);
7367
} else {
7468
allowedActions[key] = value;
7569
}

0 commit comments

Comments
 (0)