mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-14 20:19:26 +01:00
Fix error
This commit is contained in:
@@ -51,7 +51,7 @@ export default class Post extends BaseModel {
|
||||
public contentId: number
|
||||
|
||||
@belongsTo(() => PostColor, {
|
||||
foreignKey: 'postColorId'
|
||||
foreignKey: 'colorId'
|
||||
})
|
||||
public color: BelongsTo<typeof PostColor>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user