One-12 / Client

0 stars 0 forks source link

User Information not retrieved when getting posts #19

Closed arunselvakumar closed 4 years ago

arunselvakumar commented 4 years ago

Actual Behaviour: User Information is not retrieved

Expected Behaviour: User Information should be retrived. Here is the expected model from server,

export interface PostResponseModel {
  id: string;
  title: string;
  content: string;
  views: number;
  points: number;
  type: string;
  tags: TagModel[];
  postedOn: Date;
  commentsCount: number;
  likesCount: number;
  postedBy: UserModel;
}

interface TagModel {
  id: string;
  name: string;
}

interface UserModel {
  id: string;
  userName: string;
  firstName: string;
  lastName: string;
  middleName: string;
}
Prakash-Selvaraj-Ash commented 4 years ago

User information sent along with post response, as of now we are not storing first name, last name fields We will finalize which field are all needed from firebase and then we will persists those information for now we are storing email, which was sent in post details