patching user displayName and profileImageUrl

This commit is contained in:
Zamitto
2024-06-18 12:02:16 -03:00
parent af69509c61
commit 59b2096d06
6 changed files with 33 additions and 10 deletions

View File

@@ -4,12 +4,11 @@ import axios from "axios";
import fs from "node:fs";
import mime from "mime";
const patchUserProfile = (displayName: string, imageUrl?: string) => {
return;
if (imageUrl) {
const patchUserProfile = (displayName: string, profileImageUrl?: string) => {
if (profileImageUrl) {
return HydraApi.patch("/profile", {
displayName,
imageUrl,
profileImageUrl,
});
} else {
return HydraApi.patch("/profile", {