mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
Merge pull request #9562 from overleaf/bg-comments-about-deferred-flush
add comment about deferred tpds flush GitOrigin-RevId: 1b92f475d9e5784f48b156de8c916e231ba07f9d
This commit is contained in:
@@ -29,7 +29,9 @@ async function flushProjectToTpds(projectId) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Flush a project to TPDS if a flush is pending
|
||||
* Flush a project to TPDS if a flush is pending. This is called when
|
||||
* projects are loaded in the editor and triggers a sync to dropbox for
|
||||
* projects that were imported from Overleaf v1.
|
||||
*/
|
||||
async function flushProjectToTpdsIfNeeded(projectId) {
|
||||
const project = await ProjectGetter.promises.getProject(projectId, {
|
||||
@@ -92,6 +94,10 @@ async function _resetDeferredTpdsFlushCounter(project) {
|
||||
|
||||
/**
|
||||
* Mark a project as pending a flush to TPDS.
|
||||
* This was called as part of the import process for Overleaf v1 projects.
|
||||
* We no longer use this method, but imported v1 projects have the
|
||||
* deferredTpdsFlushCounter set and will trigger a flush when loaded in
|
||||
* the editor.
|
||||
*/
|
||||
async function deferProjectFlushToTpds(projectId) {
|
||||
await Project.updateOne(
|
||||
|
||||
Reference in New Issue
Block a user