mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Merge pull request #2148 from Human-Connection/2128-close-all-sessions
close all open sessions
This commit is contained in:
commit
cb2b8ddad7
@ -56,6 +56,7 @@ const createLocation = async (session, mapboxData) => {
|
|||||||
query += ' RETURN l.id'
|
query += ' RETURN l.id'
|
||||||
|
|
||||||
await session.run(query, data)
|
await session.run(query, data)
|
||||||
|
session.close()
|
||||||
}
|
}
|
||||||
|
|
||||||
const createOrUpdateLocations = async (userId, locationName, driver) => {
|
const createOrUpdateLocations = async (userId, locationName, driver) => {
|
||||||
|
|||||||
@ -72,6 +72,7 @@ const validateReport = async (resolve, root, args, context, info) => {
|
|||||||
submitterId: user.id,
|
submitterId: user.id,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
session.close()
|
||||||
const [existingReportedResource] = reportQueryRes.records.map(record => {
|
const [existingReportedResource] = reportQueryRes.records.map(record => {
|
||||||
return {
|
return {
|
||||||
label: record.get('label'),
|
label: record.get('label'),
|
||||||
|
|||||||
@ -59,6 +59,7 @@ export default {
|
|||||||
`,
|
`,
|
||||||
{ commentId: args.id },
|
{ commentId: args.id },
|
||||||
)
|
)
|
||||||
|
session.close()
|
||||||
const [comment] = transactionRes.records.map(record => record.get('comment').properties)
|
const [comment] = transactionRes.records.map(record => record.get('comment').properties)
|
||||||
return comment
|
return comment
|
||||||
},
|
},
|
||||||
|
|||||||
@ -182,6 +182,7 @@ export default {
|
|||||||
`,
|
`,
|
||||||
{ postId: args.id },
|
{ postId: args.id },
|
||||||
)
|
)
|
||||||
|
session.close()
|
||||||
const [post] = transactionRes.records.map(record => record.get('post').properties)
|
const [post] = transactionRes.records.map(record => record.get('post').properties)
|
||||||
return post
|
return post
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user