mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
remove default callback
This commit is contained in:
parent
942feb3011
commit
8c791b2938
1 changed files with 1 additions and 4 deletions
|
@ -61,10 +61,7 @@ module.exports = DocstoreClient = {
|
||||||
},
|
},
|
||||||
|
|
||||||
peekDoc(project_id, doc_id, qs, callback) {
|
peekDoc(project_id, doc_id, qs, callback) {
|
||||||
if (callback == null) {
|
request.get(
|
||||||
callback = function (error, res, body) {}
|
|
||||||
}
|
|
||||||
return request.get(
|
|
||||||
{
|
{
|
||||||
url: `http://localhost:${settings.internal.docstore.port}/project/${project_id}/doc/${doc_id}/peek`,
|
url: `http://localhost:${settings.internal.docstore.port}/project/${project_id}/doc/${doc_id}/peek`,
|
||||||
json: true,
|
json: true,
|
||||||
|
|
Loading…
Reference in a new issue