mirror of
https://github.com/twentyhq/twenty.git
synced 2024-09-11 15:35:36 +03:00
Fix billing signup when workspace does not exist (#6018)
This commit is contained in:
parent
7c2e745b45
commit
78865ee73e
@ -102,6 +102,11 @@ export class UserWorkspaceService extends TypeOrmQueryService<UserWorkspace> {
|
||||
}
|
||||
|
||||
public async getWorkspaceMemberCount(): Promise<number | undefined> {
|
||||
// TODO: to refactor, this could happen today for the first signup since the workspace does not exist yet
|
||||
if (!this.workspaceMemberRepository) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
const workspaceMemberCount = await this.workspaceMemberRepository.count();
|
||||
|
||||
return workspaceMemberCount;
|
||||
|
Loading…
Reference in New Issue
Block a user