overleaf-cep/services/history-v1/storage/lib/resync_project.js
Eric Mc Sween f68bf5a69f Merge pull request #26477 from overleaf/em-redis-buffer-resync
Handle invalid content hash when persisting changes

GitOrigin-RevId: 5259190396c8c261cad1abcd5de66314c1e871fb
2025-06-18 08:06:17 +00:00

14 lines
382 B
JavaScript

// @ts-check
const config = require('config')
const { fetchNothing } = require('@overleaf/fetch-utils')
const PROJECT_HISTORY_URL = `http://${config.projectHistory.host}:${config.projectHistory.port}`
async function resyncProject(projectId) {
await fetchNothing(`${PROJECT_HISTORY_URL}/project/${projectId}/resync`, {
method: 'POST',
})
}
module.exports = resyncProject