mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-20 02:05:21 -04:00
PrivateAPI: Rename HistoryEntryCreationDto to HistoryEntryImportDto
As the DTO is used to import a whole list of history entries rather than creating a single history entry (there is no way of doing that at the moment) Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
parent
fa724c2603
commit
1154894876
3 changed files with 5 additions and 5 deletions
|
@ -19,7 +19,7 @@ import { UsersService } from '../../../../users/users.service';
|
|||
import { NotesService } from '../../../../notes/notes.service';
|
||||
import { HistoryEntryDto } from '../../../../history/history-entry.dto';
|
||||
import { NotInDBError } from '../../../../errors/errors';
|
||||
import { HistoryEntryCreationDto } from '../../../../history/history-entry-creation.dto';
|
||||
import { HistoryEntryImportDto } from '../../../../history/history-entry-import.dto';
|
||||
import { HistoryEntryUpdateDto } from '../../../../history/history-entry-update.dto';
|
||||
import { ConsoleLoggerService } from '../../../../logger/console-logger.service';
|
||||
import { HistoryService } from '../../../../history/history.service';
|
||||
|
@ -55,7 +55,7 @@ export class HistoryController {
|
|||
|
||||
@Post()
|
||||
async setHistory(
|
||||
@Body('history') history: HistoryEntryCreationDto[],
|
||||
@Body('history') history: HistoryEntryImportDto[],
|
||||
): Promise<void> {
|
||||
try {
|
||||
// ToDo: use actual user here
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue