Fix time bound id adding in write

This commit is contained in:
ShootingStar91
2024-08-30 14:48:46 +03:00
parent b6adaa576a
commit 8a9c3e8fcf
+2 -2
View File
@@ -19,8 +19,8 @@ export const writeTimeBound = async (
try {
await writeHandler.start()
writeHandler.idValue = timeBound.bid
await writeHandler.upsertObject('now_tu_bound', timeBound, ['bid'])
const result = await writeHandler.upsertObject('now_tu_bound', timeBound, ['bid'])
writeHandler.idValue = result!.bid as number
await writeHandler.logUpdatesAndComplete(comment ?? '', references ?? [], authorizer)
await writeHandler.commit()