mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
13 lines
No EOL
465 B
CoffeeScript
13 lines
No EOL
465 B
CoffeeScript
settings = require("settings-sharelatex")
|
|
PersistorManager = require("./PersistorManager")
|
|
logger = require("logger-sharelatex")
|
|
async = require("async")
|
|
|
|
module.exports =
|
|
|
|
getSize: (bucket, project_id, callback)->
|
|
logger.log bucket:bucket, project_id:project_id, "getting project size"
|
|
PersistorManager.getProjectSize bucket, project_id, (err, size)->
|
|
if err?
|
|
logger.err bucket:bucket, project_id:project_id, "error getting size"
|
|
callback err, size |