Skip to content

Commit

Permalink
fix: permissions check for sf (#304)
Browse files Browse the repository at this point in the history
  • Loading branch information
manas-vessel authored Aug 17, 2023
1 parent d3a19b4 commit 6063e74
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vesselapi/integrations",
"version": "1.0.71",
"version": "1.0.72",
"description": "Vessel integrations",
"main": "dist/index.js",
"module": "dist/index.mjs",
Expand Down
2 changes: 1 addition & 1 deletion src/platforms/salesforce/permissions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const makePermissions = (): PlatformPermissions => {
const {
data: { records },
} = result;
if (!first(records)?.permissionsApiEnabled) {
if (!first(records)?.PermissionsApiEnabled) {
return {
errorMessage: USER_PERMISSIONS_API_DISABLED_ERROR_MESSAGE,
valid: false,
Expand Down
2 changes: 1 addition & 1 deletion src/platforms/salesforce/schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export const salesforceQueryResponse = z.object({
// -
export const salesforceUserPermissions = z
.object({
permissionsApiEnabled: z.boolean().nullable(),
PermissionsApiEnabled: z.boolean().nullable(),
})
.partial();

Expand Down

0 comments on commit 6063e74

Please sign in to comment.