فهرست منبع

Merge pull request #24903 from overleaf/bg-fix-backup-scheduler

remove history.id check from processPendingProjects function

GitOrigin-RevId: 017ab7c9bf693ed4077d4619574154166af04fe3
Brian Gough 1 سال پیش
والد
کامیت
d6c2188f2d
1فایلهای تغییر یافته به همراه0 افزوده شده و 4 حذف شده
  1. 0 4
      services/history-v1/storage/scripts/backup_scheduler.mjs

+ 0 - 4
services/history-v1/storage/scripts/backup_scheduler.mjs

@@ -234,10 +234,6 @@ async function processPendingProjects(
   const changeTimes = []
   for await (const project of pendingCursor(timeIntervalMs, limit)) {
     const projectId = project._id.toHexString()
-    if (!project.overleaf?.history?.id) {
-      logger.error({ projectId }, 'Project does not have a history ID')
-      throw new Error('Project does not have a history ID')
-    }
     const pendingAt =
       project.overleaf?.backup?.pendingChangeAt || project._id.getTimestamp()
     if (pendingAt) {