Skip to content

Commit

Permalink
Strict equality operator used when comparing ownerId
Browse files Browse the repository at this point in the history
  • Loading branch information
csehatt741 committed Jan 24, 2025
1 parent 9445ec7 commit 256ff02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/api/src/workspace/service/workspace.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export class WorkspaceService {

return {
...workspace,
isDefault: workspace.isDefault && workspace.ownerId == user.id
isDefault: workspace.isDefault && workspace.ownerId === user.id
}
}

Expand Down Expand Up @@ -250,7 +250,7 @@ export class WorkspaceService {
return {
items: items.map((item) => ({
...item,
isDefault: item.isDefault && item.ownerId == user.id
isDefault: item.isDefault && item.ownerId === user.id
})),
metadata
}
Expand Down

0 comments on commit 256ff02

Please sign in to comment.