mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 09:28:06 +00:00
Fixed versioning bug
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user