mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-25 13:18:47 +00:00
refactor(license-key): remove unused import and add organization owner ID retrieval
- Removed the unused import of the organization schema. - Introduced a new import for the getOrganizationOwnerId function to enhance license validation logic.
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
import { db } from "@dokploy/server/db";
|
import { db } from "@dokploy/server/db";
|
||||||
import { organization, user } from "@dokploy/server/db/schema";
|
import { user } from "@dokploy/server/db/schema";
|
||||||
import { eq } from "drizzle-orm";
|
import { eq } from "drizzle-orm";
|
||||||
|
import { getOrganizationOwnerId } from "./sso";
|
||||||
|
|
||||||
export const hasValidLicense = async (organizationId: string) => {
|
export const hasValidLicense = async (organizationId: string) => {
|
||||||
const ownerId = await getOrganizationOwnerId(organizationId);
|
const ownerId = await getOrganizationOwnerId(organizationId);
|
||||||
|
|||||||
Reference in New Issue
Block a user