Skip to content

Commit

Permalink
hide some props
Browse files Browse the repository at this point in the history
  • Loading branch information
hissalht committed Dec 13, 2024
1 parent 6bc4ded commit 4b8b5f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions confiture-rest-api/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,9 @@ model StoredFile {
key String
thumbnailKey String
/// @DtoEntityHidden
criterionResult CriterionResult? @relation(fields: [criterionResultId], references: [id], onDelete: Cascade, onUpdate: Cascade)
/// @DtoEntityHidden
criterionResultId Int?
}

Expand Down
2 changes: 2 additions & 0 deletions confiture-rest-api/src/audits/audits.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ import { AuthRequired } from "src/auth/auth-required.decorator";
import { User } from "src/auth/user.decorator";
import { AuthenticationJwtPayload } from "src/auth/jwt-payloads";
import { AuditListingItemDto } from "./dto/audit-listing-item.dto";
import { StoredFile } from "src/generated/nestjs-dto/storedFile.entity";

@Controller("audits")
@ApiTags("Audits")
Expand Down Expand Up @@ -148,6 +149,7 @@ export class AuditsController {

@Post("/:uniqueId/results/examples")
@UseInterceptors(FileInterceptor("image"))
@ApiCreatedResponse({ type: StoredFile })
async uploadExampleImage(
@Param("uniqueId") uniqueId: string,
@UploadedFile(
Expand Down

0 comments on commit 4b8b5f2

Please sign in to comment.