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

View file

@ -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')

@ -1 +1 @@
Subproject commit 0b3a6f4af08e46074d63f26b0ce52e6b4dbd6333
Subproject commit faf5aba4a86dd02b80f77c13dabd3b8c6eea31c5