mirror of
https://codeberg.org/pronounscc/pronouns.cc.git
synced 2024-11-20 08:09:52 +01:00
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
|
||||
if n, err := s.DB.CurrentNotice(ctx); err != nil {
|
||||
if err == db.ErrNoNotice {
|
||||
if err != db.ErrNoNotice {
|
||||
log.Errorf("getting notice: %v", err)
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue