@zeroin.earth/appwrite-graphql 0.15.5 → 0.15.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -717,7 +717,7 @@ function useDeleteIdentity() {
717
717
  if (errors) {
718
718
  throw errors;
719
719
  }
720
- return data.accountDeleteIdentity ?? { status: false };
720
+ return data?.accountDeleteIdentity ?? { status: false };
721
721
  }
722
722
  });
723
723
  return { ...queryResult };
@@ -778,7 +778,7 @@ function useDeleteSession() {
778
778
  if (errors) {
779
779
  throw errors;
780
780
  }
781
- return data.accountDeleteSession;
781
+ return data?.accountDeleteSession ?? { status: false };
782
782
  }
783
783
  });
784
784
  return { ...queryResult };
@@ -805,7 +805,7 @@ function useDeleteSessions() {
805
805
  if (errors) {
806
806
  throw errors;
807
807
  }
808
- return data.accountDeleteSessions;
808
+ return data?.accountDeleteSessions ?? { status: false };
809
809
  }
810
810
  });
811
811
  return { ...queryResult };
@@ -1058,7 +1058,7 @@ function useLogout() {
1058
1058
  if (errors) {
1059
1059
  throw errors;
1060
1060
  }
1061
- return data?.accountDeleteSession;
1061
+ return data?.accountDeleteSession ?? { status: false };
1062
1062
  },
1063
1063
  onSuccess: async () => {
1064
1064
  queryClient2.setQueryData(["appwrite"], null);
@@ -1401,7 +1401,7 @@ function useUpdateMfaChallenge() {
1401
1401
  if (errors) {
1402
1402
  throw errors;
1403
1403
  }
1404
- return data.accountUpdateMfaChallenge;
1404
+ return data?.accountUpdateMfaChallenge ?? { status: false };
1405
1405
  }
1406
1406
  });
1407
1407
  return { ...queryResult };
@@ -1489,7 +1489,7 @@ function useUpdatePassword() {
1489
1489
  if (errors) {
1490
1490
  throw errors;
1491
1491
  }
1492
- return data.accountUpdatePassword;
1492
+ return data?.accountUpdatePassword;
1493
1493
  }
1494
1494
  });
1495
1495
  return { ...queryResult };