Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
feat(tenancy): fix the bug in create database issue for the error condition (#268)
spinningbot560db2305545
diff --git a/server/task.go b/server/task.goindex b1d32cb3d3..b87885a663 100644--- a/server/task.go+++ b/server/task.go@@ -558,7 +558,7 @@ func (s *Server) changeTaskStatusWithPatch(ctx context.Context, task *api.Task,}// Set database labels, except bb.environment is immutable and must match instance environment.// This needs to be after we compose database relationship.- if err != nil && databaseCreate.Labels != nil && *databaseCreate.Labels != "" {+ if err == nil && databaseCreate.Labels != nil && *databaseCreate.Labels != "" {if err := s.setDatabaseLabels(ctx, *databaseCreate.Labels, database, databaseCreate.CreatorID); err != nil {s.l.Error("failed to record database labels after creating database",zap.String("database_name", payload.DatabaseName),