Skip to content

Commit

Permalink
BC-5450 - BE fix issue with api generator for SubmissionsResponse (#4472
Browse files Browse the repository at this point in the history
)

* revert changes from api generator fix

* remove unnecessary properties
  • Loading branch information
MartinSchuhmacher authored Oct 16, 2023
1 parent e3afbd4 commit fdc040a
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
userFactory,
} from '@shared/testing';
import { ServerTestModule } from '@src/modules/server';
import { SubmissionsResponse } from '../dto/submission-item/submissions.response';
import { SubmissionsResponse } from '../dto';

const baseRouteName = '/board-submissions';
describe('submission item lookup (api)', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@ export class SubmissionContainerContentBody {
@IsDate()
@IsOptional()
@ApiPropertyOptional({
required: false,
nullable: true,
description: 'The point in time until when a submission can be handed in.',
})
dueDate?: Date;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ export * from './submission-item.response';
export * from './submission-item.url.params';
// TODO for some reason, api generator messes up the types
// import it directly, not via this index seems to fix it
// export * from './submissions.response';
export * from './submissions.response';
export * from './update-submission-item.body.params';
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { SubmissionItem, UserBoardRoles } from '@shared/domain';
import { SubmissionsResponse } from '../dto/submission-item/submissions.response';
import { SubmissionItemResponse, TimestampsResponse, UserDataResponse } from '../dto';
import { SubmissionItemResponse, SubmissionsResponse, TimestampsResponse, UserDataResponse } from '../dto';

export class SubmissionItemResponseMapper {
private static instance: SubmissionItemResponseMapper;
Expand Down

0 comments on commit fdc040a

Please sign in to comment.