mirror of
https://github.com/flarum/framework.git
synced 2024-11-28 20:16:08 +08:00
Post's discussion should always be present
This commit is contained in:
parent
f469bcfcd7
commit
32daeffa8a
|
@ -9,7 +9,7 @@ export default class Post extends Model {
|
|||
return Model.attribute<number>('number').call(this);
|
||||
}
|
||||
discussion() {
|
||||
return Model.hasOne<Discussion>('discussion').call(this);
|
||||
return Model.hasOne<Discussion>('discussion').call(this) as Discussion;
|
||||
}
|
||||
|
||||
createdAt() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user