mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Change order.
This commit is contained in:
parent
2c29437912
commit
dcb947e3a6
@ -32,7 +32,8 @@ export default {
|
||||
params.filter.users_some = {
|
||||
id: context.user.id,
|
||||
}
|
||||
return neo4jgraphql(object, params, context, resolveInfo)
|
||||
const resolved = await neo4jgraphql(object, params, context, resolveInfo)
|
||||
return resolved.reverse()
|
||||
},
|
||||
UnreadRooms: async (object, params, context, resolveInfo) => {
|
||||
const {
|
||||
|
||||
@ -24,7 +24,7 @@ export const createRoom = () => gql`
|
||||
|
||||
export const roomQuery = () => gql`
|
||||
query Room($first: Int, $offset: Int, $id: ID) {
|
||||
Room(first: $first, offset: $offset, id: $id, orderBy: [lastMessageAt_asc]) {
|
||||
Room(first: $first, offset: $offset, id: $id, orderBy: [lastMessageAt_desc]) {
|
||||
id
|
||||
roomId
|
||||
roomName
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user