add ethereumAddress to getBoxProfile

This commit is contained in:
Pacien Boisson
2020-07-28 10:43:14 +02:00
committed by Hammad Jutt
parent 51a4eddbbd
commit a60aa62a94
3 changed files with 12 additions and 0 deletions

View File

@@ -18,6 +18,7 @@ type UpdateBoxProfileResponse {
}
type BoxProfile {
ethereumAddress : String
name : String
description : String
location : String

View File

@@ -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,

View File

@@ -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>;