Skip to content

Commit

Permalink
feat: add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
giurigaud committed Sep 24, 2024
1 parent 0253204 commit 6e1bcd8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions node/resolvers/Queries/Organizations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ const Organizations = {

return {
...org,
// the previous data registered doesn't have this propertty on masterdata
// so we need to add it to the response
permissions: org.permissions ?? { createQuote: true },
}
} catch (error) {
Expand Down Expand Up @@ -158,6 +160,8 @@ const Organizations = {
const mappedOrganizations = organizationsDB.data.map((org) => {
return {
...org,
// the previous data registered doesn't have this propertty on masterdata
// so we need to add it to the response
permissions: org.permissions ?? { createQuote: true },
}
})
Expand Down

0 comments on commit 6e1bcd8

Please sign in to comment.