Handle errors better

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2019-10-13 13:56:24 +02:00
parent 57f0b5dad1
commit 33e51a05ec
13 changed files with 214 additions and 78 deletions

View File

@@ -86,6 +86,13 @@ export enum CommentModeration {
CLOSED = 'CLOSED',
}
export interface IEventParticipantStats {
approved: number;
unapproved: number;
rejected: number;
participants: number;
}
export interface IEvent {
id?: string;
uuid: string;
@@ -108,12 +115,7 @@ export interface IEvent {
organizerActor?: IActor;
attributedTo: IActor;
participantStats: {
approved: number;
unapproved: number;
rejected: number;
participants: number;
};
participantStats: IEventParticipantStats;
participants: IParticipant[];
relatedEvents: IEvent[];