Fix error

This commit is contained in:
2021-08-28 23:02:50 +02:00
parent b8dc79989a
commit 0489a6fd70

View File

@@ -51,7 +51,7 @@ export default class Post extends BaseModel {
public contentId: number
@belongsTo(() => PostColor, {
foreignKey: 'postColorId'
foreignKey: 'colorId'
})
public color: BelongsTo<typeof PostColor>