Files
Chromacase/back/src/settings/dto/update-setting.dto.ts
Amaury a26efefd01 Feature/adc/#50 users settings route (#89)
* #50 - migration 20221023123919_ + route settings

* #50 - migration 20221023123919_ + route settings

* #50 - settings creation at user creation + update migration

* changed settings acces from by id to userId

* deleting the user results in deleting it's associated userSettings row

* pr fixes + robot tests + other minor fixes

* removed useless comments

* added settings endpoint to /auth/me and automated creation to /register

* clean code before merge
2023-04-12 05:32:41 +03:00

21 lines
436 B
TypeScript

import { ApiProperty } from '@nestjs/swagger';
export class UpdateSettingDto {
@ApiProperty()
pushNotification?: boolean;
@ApiProperty()
emailNotification?: boolean;
@ApiProperty()
trainingNotification?: boolean;
@ApiProperty()
newSongNotification?: boolean;
@ApiProperty()
recommendations?: boolean;
@ApiProperty()
weeklyReport?: boolean;
@ApiProperty()
leaderBoard?: boolean;
@ApiProperty()
showActivity?: boolean;
}