remove extra spaces from notes field

master
David Ashby 1 month ago
parent 0e878dac97
commit 3fdc4bf509
  1. 1
      database/mysql.go

@ -179,6 +179,7 @@ func (m *MySQL) GetAllBooks(ctx context.Context) ([]media.Book, error) {
return nil, err
}
b.Authors = strings.Split(authors, ";")
b.Notes = strings.TrimSpace(b.Notes)
books = append(books, b)
}

Loading…
Cancel
Save