mirror of
https://github.com/quepasaevents/qpa-client.git
synced 2023-12-14 05:33:02 +01:00
Fix path for retrieving id from DB mutation result
This commit is contained in:
parent
6ebb1c84c8
commit
535dc4541f
1 changed files with 1 additions and 1 deletions
|
@ -184,7 +184,7 @@ export default class Repository {
|
|||
data: event
|
||||
})
|
||||
console.log('Saved with following commit result', JSON.stringify(commitResult))
|
||||
const givenId = (commitResult[0].mutationResults[0].key.path as any).id
|
||||
const givenId = (commitResult[0].mutationResults[0].key.path[0] as any).id
|
||||
console.log('Will try now to retrieve event from the DB with id', givenId)
|
||||
|
||||
let retrievedEvent
|
||||
|
|
Loading…
Reference in a new issue