mirror of
https://github.com/plankanban/planka.git
synced 2025-12-24 01:11:41 +03:00
feat: Track storage usage
This commit is contained in:
@@ -44,7 +44,7 @@ class LocalFileManager {
|
||||
}
|
||||
|
||||
// eslint-disable-next-line class-methods-use-this
|
||||
async getSizeInBytes(filePathSegment) {
|
||||
async getSize(filePathSegment) {
|
||||
let result;
|
||||
try {
|
||||
result = await fs.promises.stat(buildPath(filePathSegment));
|
||||
|
||||
@@ -52,7 +52,7 @@ class S3FileManager {
|
||||
return result.Body;
|
||||
}
|
||||
|
||||
async getSizeInBytes(filePathSegment) {
|
||||
async getSize(filePathSegment) {
|
||||
const headObjectCommand = new HeadObjectCommand({
|
||||
Bucket: sails.config.custom.s3Bucket,
|
||||
Key: filePathSegment,
|
||||
|
||||
Reference in New Issue
Block a user