Skip to content

Commit

Permalink
feat: add publishStatus and status to animals.entity
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseAlbDR committed Mar 16, 2024
1 parent d631998 commit 2d40eee
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions src/domain/entities/animals.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,19 @@ export class AnimalEntity {
const { name: city } = animalResponse.city!;
const { avatar, username, isOnline } = animalResponse.shelter!.user!;

const { id, images, name, age, gender, size, type, slug, numFavs } =
animalResponse;
const {
id,
images,
name,
age,
gender,
size,
type,
slug,
numFavs,
publishStatus,
status,
} = animalResponse;

return {
id,
Expand All @@ -43,6 +54,8 @@ export class AnimalEntity {
size,
type,
city,
publishStatus,
status,
images,
numFavs,
shelter: { avatar, username, isOnline },
Expand Down

0 comments on commit 2d40eee

Please sign in to comment.