From 09cec9c71e58553696659e379a4fe7ac301985b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D0=B0=D1=82=D0=BE=D0=BB=D0=B8=D0=B9=20=D0=A2?= =?UTF-8?q?=D1=83=D1=85=D1=82=D0=B0=D1=80=D0=BE=D0=B2?= Date: Sun, 4 Feb 2024 17:00:43 +0500 Subject: [PATCH] =?UTF-8?q?v1.0.3=20=D0=9E=D1=88=D0=B8=D0=B1=D0=BA=D0=B0?= =?UTF-8?q?=20=D0=B2=20Albums?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sea.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sea.go b/sea.go index 72604c5..a272690 100644 --- a/sea.go +++ b/sea.go @@ -37,10 +37,10 @@ type Album struct { Hash string } -func (s *Sea) Albums(db *sqlx.DB) ([]Album, error) { +func (s *Sea) Albums() ([]Album, error) { cmd := "call getAlbums()" var albums []Album - err := db.Select(&albums, cmd) + err := s.db.Select(&albums, cmd) if err != nil { return nil, err }