Skip to content

Commit

Permalink
feat(api): include blog id on photos (#973)
Browse files Browse the repository at this point in the history
Co-authored-by: Johan Book <{ID}+{username}@users.noreply.github.com>
  • Loading branch information
johanbook and Johan Book authored Nov 24, 2024
1 parent 97c51f2 commit 3a6bb5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export class BlogPhotoDetails {
blogId!: string;
createdAt!: Date;
id!: string;
url!: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export class GetBlogPhotoListHandler
});

return mapArray(BlogPhotoDetails, foundPhotos, (photo) => ({
blogId: photo.blogPostId,
createdAt: photo.createdAt,
id: photo.id,
url: this.photoService.getUrl(photo, "blog-post-photo"),
Expand Down

0 comments on commit 3a6bb5c

Please sign in to comment.