mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-04-24 03:00:09 -04:00
add ethereumAddress to getBoxProfile
This commit is contained in:
committed by
Hammad Jutt
parent
51a4eddbbd
commit
a60aa62a94
@@ -18,6 +18,7 @@ type UpdateBoxProfileResponse {
|
||||
}
|
||||
|
||||
type BoxProfile {
|
||||
ethereumAddress : String
|
||||
name : String
|
||||
description : String
|
||||
location : String
|
||||
|
||||
@@ -13,6 +13,7 @@ const handler = async (req: Request, res: Response) => {
|
||||
}
|
||||
|
||||
const parsedProfile: BoxProfile = {
|
||||
ethereumAddress: address,
|
||||
name: boxProfile.name,
|
||||
description: boxProfile.description,
|
||||
location: boxProfile.location,
|
||||
|
||||
@@ -1,5 +1,15 @@
|
||||
type Maybe<T> = T | null;
|
||||
|
||||
type BoxProfile = {
|
||||
ethereumAddress: string | null;
|
||||
name: string | null;
|
||||
description: string | null;
|
||||
location: string | null;
|
||||
job: string | null;
|
||||
emoji: string | null;
|
||||
imageUrl: string | null;
|
||||
};
|
||||
|
||||
type UpdateBoxProfileResponse = {
|
||||
success: boolean;
|
||||
updatedProfiles: Array<string>;
|
||||
|
||||
Reference in New Issue
Block a user