fix(backend): invert error check in /api/v1/meta

This commit is contained in:
sam 2023-09-11 15:23:22 +02:00
parent 727848c801
commit a1b2fce9af
No known key found for this signature in database
GPG Key ID: B4EF20DDE721CAA1
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ func (s *Server) meta(w http.ResponseWriter, r *http.Request) error {
var notice *MetaNotice var notice *MetaNotice
if n, err := s.DB.CurrentNotice(ctx); err != nil { if n, err := s.DB.CurrentNotice(ctx); err != nil {
if err == db.ErrNoNotice { if err != db.ErrNoNotice {
log.Errorf("getting notice: %v", err) log.Errorf("getting notice: %v", err)
} }
} else { } else {