mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-19 17:55:17 -04:00
Rename NoteAuthorshipDto to EditDto
After Authorship was renamed to Edit, the DTO should follow. The file is also moved to the revisions folder, where the entity already is. Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
62e0530d2b
commit
09329ae360
2 changed files with 4 additions and 4 deletions
|
@ -5,7 +5,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { IsArray, IsString, ValidateNested } from 'class-validator';
|
import { IsArray, IsString, ValidateNested } from 'class-validator';
|
||||||
import { NoteAuthorshipDto } from './note-authorship.dto';
|
import { EditDto } from '../revisions/edit.dto';
|
||||||
import { NoteMetadataDto } from './note-metadata.dto';
|
import { NoteMetadataDto } from './note-metadata.dto';
|
||||||
import { ApiProperty } from '@nestjs/swagger';
|
import { ApiProperty } from '@nestjs/swagger';
|
||||||
|
|
||||||
|
@ -30,6 +30,6 @@ export class NoteDto {
|
||||||
*/
|
*/
|
||||||
@IsArray()
|
@IsArray()
|
||||||
@ValidateNested({ each: true })
|
@ValidateNested({ each: true })
|
||||||
@ApiProperty({ isArray: true, type: NoteAuthorshipDto })
|
@ApiProperty({ isArray: true, type: EditDto })
|
||||||
editedByAtPosition: NoteAuthorshipDto[];
|
editedByAtPosition: EditDto[];
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,7 @@ import { IsDate, IsNumber, IsString, Min } from 'class-validator';
|
||||||
import { UserInfoDto } from '../users/user-info.dto';
|
import { UserInfoDto } from '../users/user-info.dto';
|
||||||
import { ApiProperty } from '@nestjs/swagger';
|
import { ApiProperty } from '@nestjs/swagger';
|
||||||
|
|
||||||
export class NoteAuthorshipDto {
|
export class EditDto {
|
||||||
/**
|
/**
|
||||||
* Username of the user who authored this section
|
* Username of the user who authored this section
|
||||||
* @example "john.smith"
|
* @example "john.smith"
|
Loading…
Add table
Add a link
Reference in a new issue