Skip to content

Commit

Permalink
fix: lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
enzomerca committed Aug 16, 2024
1 parent 7e35036 commit c005049
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions node/utils/message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ const getOrgSalesAdminEmail = async (
}

const {
data: { getOrgSalesAdminEmail },
data: { getOrgSalesAdminEmailResult },
}: any = await storefrontPermissions.getOrgSalesAdminEmail({
roleId: role.id,
...(organizationId && { organizationId }),
})

// we only return the first page of sales-admin users (25)
return getOrgSalesAdminEmail.data
return getOrgSalesAdminEmailResult.data
}

const getOrgAndCostCenterNames = async (
Expand Down Expand Up @@ -162,9 +162,9 @@ const message = (ctx: Context | EventBroadcastContext) => {
let users = []

try {
users = (await getOrgSalesAdminEmail(storefrontPermissions, organization)).map(
(user: any) => user.email
)
users = (
await getOrgSalesAdminEmail(storefrontPermissions, organization)
).map((user: any) => user.email)
} catch (error) {
logger.error({
error,
Expand Down

0 comments on commit c005049

Please sign in to comment.