fix(postgres): assign bootstrapped agent identities to the default org on every start
Issue: archie-core-n5yj5
This commit is contained in:
1 parent
47a3c44d65
commit
c09d544cda
1 file changed
+4
-1
@@ -304,7 +304,10 @@ func (s *Store) UpgradeDefaultOrg(ctx context.Context) error {
|
||||
return fmt.Errorf("org upgrade phase %s: %w", p.name, err)
|
||||
}
|
||||
}
|
||||
return nil
|
||||
// Bootstrapped identities appear after the phases are recorded (a name
|
||||
// added to config later), so assignment runs on every start; an
|
||||
// identity already in an org keeps it.
|
||||
return s.queries().AssignDefaultOrgIdentities(ctx)
|
||||
}
|
||||
|
||||
// ensureOrgOperator creates the dashboard's operator person as org-sys's owner
|
||||
|
||||
Reference in new issue
Block a user