修复库查询错误
All checks were successful
Go CI / test-and-build (push) Successful in 12s

This commit is contained in:
2026-04-07 14:33:09 +08:00
parent aa45b1cd8d
commit c5102e608d

View File

@@ -19,7 +19,7 @@ func NewLibraryRepository(db *sql.DB) *LibraryRepository {
} }
func (r *LibraryRepository) GetAll() ([]model.Library, error) { 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 { if err != nil {
return nil, err return nil, err
} }