From c5102e608d4362ca1d2671063c1788f752161bc1 Mon Sep 17 00:00:00 2001 From: lzw-723 Date: Tue, 7 Apr 2026 14:33:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BA=93=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/repository/library.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/repository/library.go b/internal/repository/library.go index 47c81bd..3ab9b97 100644 --- a/internal/repository/library.go +++ b/internal/repository/library.go @@ -19,7 +19,7 @@ func NewLibraryRepository(db *sql.DB) *LibraryRepository { } func (r *LibraryRepository) GetAll() ([]model.Library, error) { - rows, err := r.db.Query("SELECT id, name, path, COALESCE(created_at, '1970-01-01T00:00:00Z'), COALESCE(updated_at, '1970-01-01T00:00:00Z') FROM libraries") + rows, err := r.db.Query("SELECT id, name, path, created_at,updated_at FROM libraries") if err != nil { return nil, err }