mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2025-07-24 17:00:06 +02:00

Handle invalid content hash when persisting changes GitOrigin-RevId: 5259190396c8c261cad1abcd5de66314c1e871fb
14 lines
382 B
JavaScript
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
|