mirror of
https://github.com/flarum/framework.git
synced 2024-12-01 14:20:47 +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);
|
return Model.attribute<number>('number').call(this);
|
||||||
}
|
}
|
||||||
discussion() {
|
discussion() {
|
||||||
return Model.hasOne<Discussion>('discussion').call(this);
|
return Model.hasOne<Discussion>('discussion').call(this) as Discussion;
|
||||||
}
|
}
|
||||||
|
|
||||||
createdAt() {
|
createdAt() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user