Fixed versioning bug

This commit is contained in:
Daniel Hougaard
2024-02-17 02:49:47 +01:00
parent 9ce71371a9
commit 49d07a6762

View File

@@ -46,7 +46,7 @@ export const secretVersionDALFactory = (db: TDbClient) => {
const [doc] = await (tx || db)(TableName.SecretVersion)
.where(filter)
.update(updateData)
// .increment("version", 1) // TODO: Is this really needed?
.increment("version", 1) // TODO: Is this really needed?
.returning("*");
if (!doc) throw new BadRequestError({ message: "Failed to update document" });
return doc;