mirror of
https://github.com/docmost/docmost.git
synced 2026-05-06 22:03:06 +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')
|
||||
|
||||
+1
-1
Submodule apps/server/src/ee updated: 0b3a6f4af0...faf5aba4a8
Reference in New Issue
Block a user