Change localKey to foreignKey

This commit is contained in:
2021-08-16 22:06:45 +02:00
parent 2e9dda67fb
commit e22e0b55c5
5 changed files with 5 additions and 3 deletions

View File

@@ -14,7 +14,7 @@ export default class Announce extends BaseModel {
public hoverColor: string
@belongsTo(() => Translation, {
localKey: 'messageId'
foreignKey: 'messageId'
})
public message: BelongsTo<typeof Translation>