generated from kir-dev/next-nest-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated the Event FindOne function to match the requirements for the …
…frontend (#41) * Updated the Event FindOne function * Requested Change
- Loading branch information
Showing
5 changed files
with
48 additions
and
4 deletions.
There are no files selected for viewing
File renamed without changes.
15 changes: 15 additions & 0 deletions
15
apps/backend/src/drink-action/dto/drinkAction-with-user.dto.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Drink } from 'src/drinks/entities/drink.entity'; | ||
import { User } from 'src/users/entities/user.entity'; | ||
|
||
import { DrinkAction } from '../entities/drink-action.entity'; | ||
|
||
export class DrinkActionWithDrinkAndUser extends DrinkAction { | ||
/** | ||
* Drink that was consumed | ||
*/ | ||
drink: Drink; | ||
/* | ||
* User data for the DrinkAction | ||
*/ | ||
user: User; | ||
} |
15 changes: 15 additions & 0 deletions
15
apps/backend/src/events/dto/event-with-drinkActions-and-user.dto.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { DrinkActionWithDrinkAndUser } from 'src/drink-action/dto/drinkAction-with-user.dto'; | ||
import { User } from 'src/users/entities/user.entity'; | ||
|
||
import { Event } from '../entities/event.entity'; | ||
|
||
export class EventWithDrinkActionsAndUser extends Event { | ||
/** | ||
* List of DrinkActions associated with the event | ||
*/ | ||
drinkActions: DrinkActionWithDrinkAndUser[]; | ||
/** | ||
* The owner of the Event | ||
*/ | ||
owner: User; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters