forked from mirrors/pronouns.cc
fix(backend): invert error check in /api/v1/meta
This commit is contained in:
parent
727848c801
commit
a1b2fce9af
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue