diff --git a/.github/workflows/docker-develop.yml b/.github/workflows/docker-develop.yml index eeff47cb5..fd91ec2b5 100644 --- a/.github/workflows/docker-develop.yml +++ b/.github/workflows/docker-develop.yml @@ -2,7 +2,7 @@ name: Docker-CI on: push: - branches: [ develop ] + branches: [ develop,fix-* ] env: IMAGE_NAME: ghcr.io/bnb-chain/greenfield-storage-provider-invisible diff --git a/modular/blocksyncer/modules/permission/permission_handler.go b/modular/blocksyncer/modules/permission/permission_handler.go index 397677dd6..3cda5ae88 100644 --- a/modular/blocksyncer/modules/permission/permission_handler.go +++ b/modular/blocksyncer/modules/permission/permission_handler.go @@ -122,8 +122,10 @@ func (m *Module) handlePutPolicy(ctx context.Context, block *tmctypes.ResultBloc res := make(map[string][]interface{}) k, v := m.db.SavePermissionToSQL(ctx, p) res[k] = v - k, v = m.db.MultiSaveStatementToSQL(ctx, statements) - res[k] = v + if len(statements) != 0 { + k, v = m.db.MultiSaveStatementToSQL(ctx, statements) + res[k] = v + } return res, nil }