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:
Mauricio Siu
2026-02-18 01:40:22 -06:00
parent 605931861b
commit b9c62cc515

View File

@@ -1,6 +1,7 @@
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 { getOrganizationOwnerId } from "./sso";
export const hasValidLicense = async (organizationId: string) => {
const ownerId = await getOrganizationOwnerId(organizationId);