mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-02-02 14:02:41 +00:00
Notes: Add NoteMediaDeletionDto
This is used to specify if the media uploads should be kept or deleted, when deleting a note. Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
parent
61321fd992
commit
e2469eb441
1 changed files with 18 additions and 0 deletions
18
src/notes/note.media-deletion.dto.ts
Normal file
18
src/notes/note.media-deletion.dto.ts
Normal file
|
@ -0,0 +1,18 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
import { IsBoolean } from 'class-validator';
|
||||
import { ApiProperty } from '@nestjs/swagger';
|
||||
|
||||
export class NoteMediaDeletionDto {
|
||||
/**
|
||||
* Should the associated mediaUploads be keept
|
||||
* @default false
|
||||
* @example false
|
||||
*/
|
||||
@IsBoolean()
|
||||
@ApiProperty()
|
||||
keepMedia: boolean;
|
||||
}
|
Loading…
Reference in a new issue