This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user