Readded limit to replies relation

no issue

Was accidentally committed with previous commit.
This commit is contained in:
Simon Backx 2022-08-12 14:49:43 +02:00
parent 5c75997685
commit 7ddfa9a195

View File

@ -52,7 +52,9 @@ const Comment = ghostBookshelf.Model.extend({
replies() {
return this.hasMany('Comment', 'parent_id', 'id')
.query('orderBy', 'created_at', 'ASC');
.query('orderBy', 'created_at', 'ASC')
// Note: this limit is not working
.query('limit', 3);
},
emitChange: function emitChange(event, options) {