feat: Remove size from packs
parent
0b659db2c3
commit
30b2a7bfdd
|
@ -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,
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue