This commit is contained in:
Philipinho
2026-03-02 04:08:59 +00:00
parent ee6b98edaa
commit 616d9297eb
2 changed files with 12 additions and 1 deletions
@@ -68,6 +68,17 @@ export class WorkspaceRepo {
return query.executeTakeFirst();
}
async findLicenseKeyById(
workspaceId: string,
): Promise<string | undefined> {
const row = await this.db
.selectFrom('workspaces')
.select('licenseKey')
.where('id', '=', workspaceId)
.executeTakeFirst();
return row?.licenseKey;
}
async findFirst(): Promise<Workspace> {
return await this.db
.selectFrom('workspaces')