feat: Remove size from packs

master
ogomez-at-wiris 2022-02-25 04:44:37 +01:00
parent 0b659db2c3
commit 30b2a7bfdd
1 changed files with 0 additions and 4 deletions

View File

@ -24,7 +24,6 @@ export default class PackService {
public static getPackInfo = async (packName: string): Promise<Pack> => {
let files: File[] = [];
const name = packName;
let size = 0;
let bpm: string = "";
// Setup walk
@ -37,8 +36,6 @@ export default class PackService {
const promises = await Promise.all(
packFiles.map(async (file) => {
size += await fs.statSync(file.path).size;
files.push({
path: file.path,
name: file.name
@ -56,7 +53,6 @@ export default class PackService {
const currentPack: Pack = {
name: name,
size: size,
bpm: bpm,
files: files,
};