add getFileInfo by Id function

parent dd0675a2
...@@ -26,6 +26,9 @@ module.exports = function (gfs) { ...@@ -26,6 +26,9 @@ module.exports = function (gfs) {
}, },
readFile : function (fileId) { readFile : function (fileId) {
return dbUtils.readFileToBufferById(gfs, fileId); return dbUtils.readFileToBufferById(gfs, fileId);
},
getFileInfo : function (fileId) {
return dbUtils.getFileInfo(gfs, fileId);
} }
}; };
}; };
\ No newline at end of file
{ {
"name": "mirera-db", "name": "mirera-db",
"version": "1.5.6", "version": "1.5.7",
"description": "DB utils for mirera program testing server", "description": "DB utils for mirera program testing server",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
"db" "db"
], ],
"dependencies": { "dependencies": {
"db-utils": "git+https://git.niisi.ru/mirera/db-utils.git#4bb06dea1c3464c05507c6412169b3409ecde57f" "db-utils": "git+https://git.niisi.ru/mirera/db-utils.git#7b9b20ffa2b4653995930865207ed6c25c82291a"
}, },
"author": "Danila Eremin", "author": "Danila Eremin",
"license": "MIT" "license": "MIT"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment