This commit is contained in:
Niko Storni 2018-08-02 10:37:22 -04:00
parent e4d653067e
commit 67a666b047
2 changed files with 2 additions and 2 deletions

View file

@ -122,7 +122,7 @@ func (s SyncManager) setChannelSyncStatus(channelID string, status string) error
const (
VideoStatusPublished = "published"
VideoSStatusFailed = "failed"
VideoStatusFailed = "failed"
)
func (s SyncManager) MarkVideoStatus(channelID string, videoID string, status string, claimID string, claimName string, failureReason string) error {

View file

@ -336,7 +336,7 @@ func (s *Sync) startWorker(workerNum int) {
}
SendErrorToSlack("Video failed after %d retries, skipping. Stack: %s", tryCount, logMsg)
}
err = s.Manager.MarkVideoStatus(s.YoutubeChannelID, v.ID(), VideoSStatusFailed, "", "", err.Error())
err = s.Manager.MarkVideoStatus(s.YoutubeChannelID, v.ID(), VideoStatusFailed, "", "", err.Error())
if err != nil {
SendErrorToSlack("Failed to mark video on the database: %s", err.Error())
}