Fixed versioning bug

This commit is contained in:
Daniel Hougaard
2024-02-22 05:00:26 +01:00
parent 9ce71371a9
commit 49d07a6762
@@ -46,7 +46,7 @@ export const secretVersionDALFactory = (db: TDbClient) => {
const [doc] = await (tx || db)(TableName.SecretVersion) const [doc] = await (tx || db)(TableName.SecretVersion)
.where(filter) .where(filter)
.update(updateData) .update(updateData)
// .increment("version", 1) // TODO: Is this really needed? .increment("version", 1) // TODO: Is this really needed?
.returning("*"); .returning("*");
if (!doc) throw new BadRequestError({ message: "Failed to update document" }); if (!doc) throw new BadRequestError({ message: "Failed to update document" });
return doc; return doc;