resync_project.js 382 B

1234567891011121314
  1. // @ts-check
  2. const config = require('config')
  3. const { fetchNothing } = require('@overleaf/fetch-utils')
  4. const PROJECT_HISTORY_URL = `http://${config.projectHistory.host}:${config.projectHistory.port}`
  5. async function resyncProject(projectId) {
  6. await fetchNothing(`${PROJECT_HISTORY_URL}/project/${projectId}/resync`, {
  7. method: 'POST',
  8. })
  9. }
  10. module.exports = resyncProject