Fixed NPE, fixed failed lister migration.

This commit is contained in:
mathan 2024-02-25 20:51:10 -08:00
parent 067be8ec83
commit efc106453f
3 changed files with 34 additions and 6 deletions

View file

@ -72,7 +72,7 @@ func EnsureExists(ctx context.Context, db *gorm.DB, did string) (*Repo, bool, er
remote, err := pds.EnsureExists(ctx, db, u.String())
if err != nil {
return nil, false, fmt.Errorf("failed to get PDS record from DB for %q: %w", remote.Host, err)
return nil, false, fmt.Errorf("failed to get PDS record from DB: %w", err)
}
r = Repo{DID: did, PDS: models.ID(remote.ID)}
created := false