overleaf/services/filestore/app/coffee/ProjectHandler.coffee

13 lines
465 B
CoffeeScript
Raw Normal View History

2016-03-12 02:35:49 -05:00
settings = require("settings-sharelatex")
PersistorManager = require("./PersistorManager")
logger = require("logger-sharelatex")
async = require("async")
module.exports =
2016-03-12 09:08:07 -05:00
getSize: (bucket, project_id, callback)->
logger.log bucket:bucket, project_id:project_id, "getting project size"
PersistorManager.getProjectSize bucket, project_id, (err, size)->
2016-03-12 02:35:49 -05:00
if err?
2016-03-12 09:08:07 -05:00
logger.err bucket:bucket, project_id:project_id, "error getting size"
2016-03-12 02:35:49 -05:00
callback err, size