mirror of
https://github.com/docmost/docmost.git
synced 2026-05-07 06:23:06 +08:00
sync
This commit is contained in:
@@ -68,6 +68,17 @@ export class WorkspaceRepo {
|
|||||||
return query.executeTakeFirst();
|
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> {
|
async findFirst(): Promise<Workspace> {
|
||||||
return await this.db
|
return await this.db
|
||||||
.selectFrom('workspaces')
|
.selectFrom('workspaces')
|
||||||
|
|||||||
+1
-1
Submodule apps/server/src/ee updated: 0b3a6f4af0...faf5aba4a8
Reference in New Issue
Block a user