Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Madhawa97 committed Aug 22, 2023
1 parent 02ac950 commit 1db9ecd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/controllers/mentor.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export const mentorApplicationHandler = async (
application,
categoryId
)

if (!mentor) {
res.status(404).json({ message: 'Mentor not created' })
}
Expand Down
3 changes: 2 additions & 1 deletion src/entities/category.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import Mentor from './mentor.entity'
class Category extends BaseEntity {
@Column({ type: 'varchar', length: 255 })
category: string
@OneToMany(() => Mentor, (mentor) => mentor.category)

Check failure on line 8 in src/entities/category.entity.ts

View workflow job for this annotation

GitHub Actions / build

Delete `··`
@OneToMany(() => Mentor, (mentor) => mentor.category)
mentors: Mentor[]

constructor(category: string, mentors: Mentor[]) {
Expand Down

0 comments on commit 1db9ecd

Please sign in to comment.