Replace "errorx".First => "errors".Join
This commit is contained in:
parent
bbbd1240eb
commit
3a893bbfb6
3 changed files with 6 additions and 7 deletions
|
|
@ -5,7 +5,6 @@ import (
|
|||
"errors"
|
||||
|
||||
"github.com/FAU-CDI/wisski-distillery/internal/models"
|
||||
"github.com/tkw1536/pkglib/errorx"
|
||||
"github.com/tkw1536/pkglib/sqlx"
|
||||
)
|
||||
|
||||
|
|
@ -19,7 +18,7 @@ func (sql *SQL) Provision(ctx context.Context, instance models.Instance, domain
|
|||
|
||||
// Purge purges sql-specific resources for the given instance
|
||||
func (sql *SQL) Purge(ctx context.Context, instance models.Instance, domain string) error {
|
||||
return errorx.First(
|
||||
return errors.Join(
|
||||
sql.PurgeDatabase(instance.SqlDatabase),
|
||||
sql.PurgeUser(ctx, instance.SqlUsername),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue