Skip to content

Commit ec9919e

Browse files
committed
fix: do not crash when peak id is not prvided in record JSON & enabled export of peak ids in GetRecord again
1 parent b9bff38 commit ec9919e

File tree

4 files changed

+451
-456
lines changed

4 files changed

+451
-456
lines changed

pkg/database/db_interface.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ type MB3Database interface {
139139
// GetRecord gets a single MassBank record by the Accession string.
140140
// It should return nil and a [NotFoundError] if the record is not in the
141141
// database.
142-
GetRecord(*string) (*string, error)
142+
GetRecord(*string) (*massbank.MassBank2, error)
143143

144144
GetRecords(*[]string) (*[]string, error)
145145

0 commit comments

Comments
 (0)