WizardFactory / BlogSyncer

one write posting all of the world
Apache License 2.0
3 stars 10 forks source link

Fixed #316 새로운 글 sync중에 에러 발생시에 복구 #319

Closed kimalec closed 9 years ago

kimalec commented 9 years ago

_requestPostContent parameter로 retry에 필요한 정보를 모두 전달한다. 새로운 글이면, postInfo가 있는지 확인하고, 없으면 postInfo를 만든다. group를 돌면서 postInfo의 infos array에 없는 blog에 posting한다. 에러가 발생하면, retryDb에 저장하고, 다음 task에 시도한다. hashTags는 공백으로 분리된다. post type이 photo인데 media url이 없는 경우에 대하여 예외처리함.

add retryDb to BlogBot. add _retryPost(), _retryPostings(),_addRetryPosting() to BlogBot check content to have hashtags in makeLimitString update historySchema add getInfoFromPostInfo() to postdb.js