Skip to content

Commit a15d156

Browse files
authored
feat: save commit details event build failed (#868)
1 parent 26f1626 commit a15d156

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swiftwave_service/worker/process_application_build_request.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ func (m Manager) buildApplicationForGit(deployment *core.Deployment, db gorm.DB,
182182
deployment.CommitHash = commitHash
183183
deployment.CommitMessage = commitMessage
184184
// update deployment
185-
err = db.Model(&deployment).Updates(map[string]interface{}{"commit_hash": commitHash, "commit_message": commitMessage}).Error
185+
err = dbWithoutTx.Model(&deployment).Updates(map[string]interface{}{"commit_hash": commitHash, "commit_message": commitMessage}).Error
186186
if err != nil {
187187
addPersistentDeploymentLog(dbWithoutTx, pubSubClient, deployment.ID, "Failed to update commit hash and message in database\n", false)
188188
addPersistentDeploymentLog(dbWithoutTx, pubSubClient, deployment.ID, "Reason > "+err.Error()+"\n", true)

0 commit comments

Comments
 (0)