mirror of
https://github.com/docmost/docmost.git
synced 2026-05-19 07:54:05 +08:00
sync
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user