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:
Philip Molares 2021-04-10 23:26:58 +02:00
parent b36ce1bb08
commit 085241999b
3 changed files with 5 additions and 5 deletions

View file

@ -31,7 +31,7 @@ import { UsersModule } from '../../src/users/users.module';
import { PrivateApiModule } from '../../src/api/private/private-api.module';
import { HistoryService } from '../../src/history/history.service';
import { Note } from '../../src/notes/note.entity';
import { HistoryEntryCreationDto } from '../../src/history/history-entry-creation.dto';
import { HistoryEntryImportDto } from '../../src/history/history-entry-import.dto';
describe('History', () => {
let app: INestApplication;
@ -105,7 +105,7 @@ describe('History', () => {
});
it('POST /me/history', async () => {
const postEntryDto = new HistoryEntryCreationDto();
const postEntryDto = new HistoryEntryImportDto();
postEntryDto.note = note2.alias;
await request(app.getHttpServer())
.post('/me/history')