Update backend/src/schema/resolvers/groups.js

Co-authored-by: Moriz Wahl <moriz.wahl@gmx.de>
This commit is contained in:
Wolfgang Huß 2022-08-10 12:52:20 +02:00 committed by GitHub
parent 7682aa7e45
commit 82401b1488
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,8 +36,7 @@ export default {
const result = await txc.run(groupCypher, {
userId: context.user.id,
})
const group = result.records.map((record) => record.get('group'))
return group
return result.records.map((record) => record.get('group'))
})
try {
const group = await readTxResultPromise