Chore: Move plugin settings store code into a dedicated service (#53560)

This commit is contained in:
Serge Zaitsev
2022-08-11 09:50:53 +02:00
committed by GitHub
parent 818bc88242
commit 72367f99cf
5 changed files with 295 additions and 308 deletions
+4
View File
@@ -179,6 +179,10 @@ func (ss *SQLStore) GetDialect() migrator.Dialect {
return ss.Dialect
}
func (ss *SQLStore) Bus() bus.Bus {
return ss.bus
}
func (ss *SQLStore) ensureMainOrgAndAdminUser() error {
ctx := context.Background()
err := ss.WithTransactionalDbSession(ctx, func(sess *DBSession) error {