Skip to content

Commit fa5935d

Browse files
committed
fix: fix data
1 parent 5f918bd commit fa5935d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pkg/convenience/synchronizer_node/raw_repository.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ func (s *RawRepository) GetApplicationRef(ctx context.Context, appID uint64) ([]
138138
}
139139

140140
func (s *RawRepository) GetLatestApp(ctx context.Context) (*model.ConvenienceApplication, error) {
141-
var output *model.ConvenienceApplication
141+
var output model.ConvenienceApplication
142142
query := `
143143
SELECT
144144
id,
@@ -175,7 +175,7 @@ func (s *RawRepository) GetLatestApp(ctx context.Context) (*model.ConvenienceApp
175175

176176
slog.Debug("Latest App fetched", "id", output.ID, "name", output.Name, "address", output.ApplicationAddress)
177177

178-
return output, nil
178+
return &output, nil
179179
}
180180

181181
func (s *RawRepository) FindAllAppsRef(ctx context.Context) ([]model.ConvenienceApplication, error) {

pkg/convenience/synchronizer_node/synchronizer_app_create_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,5 @@ func (s *SynchronizerAppCreate) TestAppCreate() {
7979
s.Require().NoError(err)
8080
count, err := s.appRepository.Count(s.ctx, nil)
8181
s.Require().NoError(err)
82-
s.Require().Equal(1, count)
82+
s.Require().Equal(1, int(count))
8383
}

0 commit comments

Comments
 (0)