Merge pull request #25152 from overleaf/em-ds-mobile-app

Endpoints for DS mobile app

GitOrigin-RevId: c7cf867bde60a0293c1c9f68f5a08515d0d2e904
This commit is contained in:
Eric Mc Sween
2025-05-01 07:42:57 -04:00
committed by Copybot
parent 46ff22cab7
commit c4586cdd2e
3 changed files with 9 additions and 2 deletions

View File

@@ -64,6 +64,11 @@ function flushProjectToMongoAndDelete(projectId, callback) {
)
}
/**
* @param {string} projectId
* @param {string} docId
* @param {Callback} callback
*/
function flushDocToMongo(projectId, docId, callback) {
_makeRequest(
{

View File

@@ -83,6 +83,9 @@ const ProjectGetter = {
return project._id
},
/**
* @return {Promise<any>}
*/
async findAllUsersProjects(userId, fields) {
const CollaboratorsGetter = require('../Collaborators/CollaboratorsGetter')
const ownedProjects = await Project.find(

View File

@@ -1,5 +1,3 @@
// TODO: This file was created by bulk-decaffeinate.
// Sanity-check the conversion and remove this comment.
const BASE_URL = `http://${process.env.HTTP_TEST_HOST || '127.0.0.1'}:23000`
const request = require('request').defaults({
baseUrl: BASE_URL,
@@ -21,4 +19,5 @@ module.exports.promises = {
})
})
},
BASE_URL,
}