mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
Add cond
This commit is contained in:
@@ -50,6 +50,8 @@ export const pkiAcmeChallengeDALFactory = (db: TDbClient) => {
|
||||
authStatus: AcmeAuthStatus.Valid
|
||||
}
|
||||
)
|
||||
// Only update orders that are pending
|
||||
.where(`${TableName.PkiAcmeOrder}.status`, AcmeOrderStatus.Pending)
|
||||
.whereIn(`${TableName.PkiAcmeOrder}.id`, involvedOrderIds);
|
||||
})
|
||||
.update({ status: AcmeOrderStatus.Ready });
|
||||
|
||||
Reference in New Issue
Block a user