Refactor admin action naming and move user assertions

Renamed the admin actions to have a more uniform approach with "Action" suffixed. This makes the action function's purpose clear in the codebase. Also, moved the `assertUserIsNotCurrentSuperAdmin` method to a more suitable place in the code, arranging it in a private scope. This helps in maintaining clean code architecture and enhances readibility.
This commit is contained in:
giancarlo
2024-04-09 19:08:40 +08:00
parent d275d993bd
commit 37f1db6b2b
9 changed files with 67 additions and 42 deletions

View File

@@ -1,5 +1,5 @@
import { getOrder, getVariant } from '@lemonsqueezy/lemonsqueezy.js';
import { createHmac, timingSafeEqual } from 'crypto';
import { createHmac, timingSafeEqual } from 'node:crypto';
import {
BillingConfig,