fix(backend): invert error check in /api/v1/meta
This commit is contained in:
parent
727848c801
commit
a1b2fce9af
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue