feat: collect JSON and XML feeds
This commit is contained in:
@@ -272,7 +272,7 @@ func (h *Handler) queueSync(c *gin.Context) {
|
||||
if !ok {
|
||||
return
|
||||
}
|
||||
crons, err := h.service.QueueSync(userID)
|
||||
crons, err := h.service.SyncSources(c.Request.Context(), userID)
|
||||
if err != nil {
|
||||
writeError(c, err)
|
||||
return
|
||||
@@ -281,7 +281,7 @@ func (h *Handler) queueSync(c *gin.Context) {
|
||||
for _, cron := range crons {
|
||||
result = append(result, cronDTO(cron))
|
||||
}
|
||||
c.JSON(http.StatusAccepted, result)
|
||||
c.JSON(http.StatusOK, result)
|
||||
}
|
||||
|
||||
func currentUser(c *gin.Context) (uint, bool) {
|
||||
|
||||
Reference in New Issue
Block a user