mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 23:35:58 +00:00
comments are sorted by createdAt
This commit is contained in:
parent
f7b60f5928
commit
48cf0a6816
@ -45,9 +45,7 @@ export default {
|
||||
const result = await resultPromise
|
||||
const userData = result.records[0].get('result')
|
||||
userData.posts.sort(byCreationDate)
|
||||
if (userData.posts.comments) {
|
||||
userData.posts.each((post) => post.comments.sort(byCreationDate))
|
||||
}
|
||||
userData.posts.forEach((post) => post.comments.sort(byCreationDate))
|
||||
return userData
|
||||
} finally {
|
||||
session.close()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user