mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-31 12:51:35 +02:00
Merge pull request #25152 from overleaf/em-ds-mobile-app
Endpoints for DS mobile app GitOrigin-RevId: c7cf867bde60a0293c1c9f68f5a08515d0d2e904
This commit is contained in:
@@ -64,6 +64,11 @@ function flushProjectToMongoAndDelete(projectId, callback) {
|
||||
)
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} projectId
|
||||
* @param {string} docId
|
||||
* @param {Callback} callback
|
||||
*/
|
||||
function flushDocToMongo(projectId, docId, callback) {
|
||||
_makeRequest(
|
||||
{
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user