refactor: eslint and prettier conflict will be resolved and formatted

This commit is contained in:
Enes Köksal
2026-04-23 17:05:43 +03:00
parent 385b61f29b
commit 3cfea40fbd
219 changed files with 16638 additions and 13663 deletions
+7 -8
View File
@@ -21,7 +21,11 @@ function redirectForBilling() {
redirect(BILLING_REDIRECT);
}
function ensureGuestPolicy(options: { userId?: string; intent: AccessIntent; allowPublicView: boolean }) {
function ensureGuestPolicy(options: {
userId?: string;
intent: AccessIntent;
allowPublicView: boolean;
}) {
const { userId, intent, allowPublicView } = options;
if (userId) return;
@@ -66,9 +70,7 @@ export async function requireAuthOrRedirect() {
return session;
}
export async function requireBillingAccessOrRedirect(options?: {
userId?: string;
}) {
export async function requireBillingAccessOrRedirect(options?: { userId?: string }) {
const resolvedUserId = options?.userId ?? (await auth())?.user?.id;
if (!resolvedUserId) {
@@ -99,10 +101,7 @@ export async function hasCollaboratorBillingBackedAccess(userId: string) {
db.workspace.count({
where: {
owner: buildBillingAccessWhereInput(now),
OR: [
{ ownerId: userId },
{ members: { some: { userId } } },
],
OR: [{ ownerId: userId }, { members: { some: { userId } } }],
},
}),
db.project.count({