Skip to content

Commit

Permalink
Extracted profile updating logic
Browse files Browse the repository at this point in the history
  • Loading branch information
ad956 committed Jun 17, 2024
1 parent c5ecdd9 commit 24d1305
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/patient/updateProfilePicture.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
async function updateProfilePicture(profile_url: string) {
const res = await fetch("/api/patient/update-profile/profile", {
method: "PUT",
body: JSON.stringify(profile_url),
});

const isProfileUpdated = await res.json();

return isProfileUpdated;
}

export default updateProfilePicture;

0 comments on commit 24d1305

Please sign in to comment.