Skip to content

Commit

Permalink
removed unusable api body
Browse files Browse the repository at this point in the history
  • Loading branch information
dowhep committed May 22, 2024
1 parent 699d758 commit bf23a5c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions api/validators/EventControllerRequests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ export class OptionalEventProperties implements IOptionalEventProperties {
}

export class Event extends OptionalEventProperties implements IEvent {
@IsNotEmpty()
cover: string;
// @IsNotEmpty()
// cover: string;

@IsNotEmpty()
title: string;
Expand Down
3 changes: 3 additions & 0 deletions models/EventModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ export class EventModel extends BaseEntity {
@Column('integer')
pointValue: number;

@Column('boolean', { default: true })
published: boolean;

@Column('boolean', { default: false })
deleted: boolean;

Expand Down
2 changes: 1 addition & 1 deletion types/ApiRequests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export interface OptionalEventProperties {
}

export interface Event extends OptionalEventProperties {
cover: string;
// cover: string;
title: string;
description: string;
location: string;
Expand Down

0 comments on commit bf23a5c

Please sign in to comment.