feat(captain): queue document syncs
This commit is contained in:
@@ -194,7 +194,7 @@ func (h *CaptainDocumentHandler) SyncDocument(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
if _, err := h.svc.MarkSyncing(c.Request.Context(), accountID, id); err != nil {
|
||||
if _, err := h.svc.RequestSyncDocumentByAccount(c.Request.Context(), accountID, id); err != nil {
|
||||
applogger.L().Errorf("SyncDocument: %v", err)
|
||||
response.AbortWithStatusError(c, captainAssistantErrorStatus(err), response.ErrInternal, "failed to sync document")
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user