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