mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
reverted change - use forEach instead of for loop
This commit is contained in:
parent
70c310bc88
commit
8065529d0a
@ -18,9 +18,9 @@ export default {
|
||||
const resolved = await neo4jgraphql(object, params, context, resolveInfo)
|
||||
|
||||
if (resolved) {
|
||||
for (let i = 0; i < resolved.length; i++) {
|
||||
resolved[i]._id = resolved[i].id
|
||||
}
|
||||
resolved.forEach((message) => {
|
||||
message._id = message.id
|
||||
})
|
||||
}
|
||||
return resolved
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user