mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
fix cypher statement
This commit is contained in:
parent
fe416200fb
commit
fe3e5dc483
@ -29,7 +29,7 @@ export async function up(next) {
|
||||
await transaction.run(`
|
||||
MATCH (e:Event { id: '${id}' })
|
||||
SET e.eventStart = '${eventStart}'
|
||||
SET (CASE WHEN e.eventEnd THEN e END).eventEnd = '${eventEnd}'
|
||||
SET (CASE WHEN exists(e.eventEnd) THEN e END).eventEnd = '${eventEnd}'
|
||||
RETURN e
|
||||
`)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user