fix: i forgot one uncheck error log

This commit is contained in:
overflowerror 2021-08-22 16:36:55 +02:00
parent 48cd194d04
commit 3386af5533

View file

@ -114,7 +114,9 @@ func (l *Logic) sendThread(thread *models.Thread) {
thread.Status = models.ThreadDone
err = l.ctx.Data.UpdateThreadWithoutTweets(thread)
l.ctx.Log.Errorf("couldn't update thread in DB: %v", err)
if err != nil {
l.ctx.Log.Errorf("couldn't update thread in DB: %v", err)
}
}
func (l *Logic) scheduleTriggerTwitter() {