Resolved the issue where the final deployment logs for the domain were not recorded after immediate execution.

This commit is contained in:
yoan
2024-08-21 21:34:11 +08:00
parent f6760515e9
commit bbc6d094c3
4 changed files with 41 additions and 6 deletions

View File

@@ -14,9 +14,7 @@ func create(ctx context.Context, record *models.Record) error {
}
if record.GetBool("rightnow") {
defer func() {
setRightnow(ctx, record, false)
}()
if err := deploy(ctx, record); err != nil {
return err
}
@@ -46,9 +44,7 @@ func update(ctx context.Context, record *models.Record) error {
}
if record.GetBool("rightnow") {
defer func() {
setRightnow(ctx, record, false)
}()
if err := deploy(ctx, record); err != nil {
return err
}