mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-29 13:51:02 +00:00
patching user displayName and profileImageUrl
This commit is contained in:
@@ -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", {
|
||||
|
||||
Reference in New Issue
Block a user