mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +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 result = await resultPromise
|
||||||
const userData = result.records[0].get('result')
|
const userData = result.records[0].get('result')
|
||||||
userData.posts.sort(byCreationDate)
|
userData.posts.sort(byCreationDate)
|
||||||
if (userData.posts.comments) {
|
userData.posts.forEach((post) => post.comments.sort(byCreationDate))
|
||||||
userData.posts.each((post) => post.comments.sort(byCreationDate))
|
|
||||||
}
|
|
||||||
return userData
|
return userData
|
||||||
} finally {
|
} finally {
|
||||||
session.close()
|
session.close()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user