Skip to content

Commit

Permalink
fix: relations
Browse files Browse the repository at this point in the history
  • Loading branch information
Mnigos committed Dec 4, 2023
1 parent 0d53356 commit 78dbcfe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/modules/statistics/dtos/item-query.dto.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { IsOptional, Max } from 'class-validator'
import { IsOptional } from 'class-validator'

export abstract class ItemQuery {
@IsOptional()
@Max(50)
limit?: number
}
2 changes: 1 addition & 1 deletion src/modules/users/user.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export class User {
@ApiProperty()
id: string

@OneToOne(() => Profile, { cascade: true })
@OneToOne('Profile', 'user', { cascade: true })
@JoinColumn()
@ApiProperty({ type: Profile })
profile: Relation<Profile>
Expand Down

0 comments on commit 78dbcfe

Please sign in to comment.