Skip to content

Commit

Permalink
Update service.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
chronark authored Oct 16, 2024
1 parent 7461568 commit 4a6daf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/api/src/pkg/keys/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ export class KeyService {
return Ok({ valid: false, code: "NOT_FOUND" });
}

if ((data.forWorkspace && !data.forWorkspace.enabled) || !data.workspace.enabled) {
if ((data.forWorkspace && !data.forWorkspace.enabled) || !data.workspace?.enabled) {
return Err(new DisabledWorkspaceError(data.workspace.id));
}

Expand Down

0 comments on commit 4a6daf7

Please sign in to comment.