Skip to content

Commit

Permalink
remove
Browse files Browse the repository at this point in the history
  • Loading branch information
YongZL committed Jul 30, 2024
1 parent 0f680df commit a512c30
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@
"name": "TG-bags",
"version": "1.0.0",
"scripts": {
"compile": "npx rimraf dist && tsc",
"run": "node dist/ton-connect/bot.js",
"start:redis": "docker run -d -p 127.0.0.1:6379:6379 redis/redis-stack-server:latest",
"start:daemon": "pm2 start --name tgbot ./dist/main.js",
"stop:daemon": "pm2 stop tgbot && pm2 delete tgbot",
"dev": "vite",
"build": "tsc -b && vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
Expand Down
2 changes: 1 addition & 1 deletion src/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ type DataItem = {
[key: string]: number | string;
};

export function calculateTotalFileSize<T extends DataItem>(data: T[], key: string): string | void {
export function calculateTotalFileSize<T extends DataItem>(data: T[], key: string) {
if (data && data.length <= 0 && !key) return;
let totalSize = 0;
data.forEach(item => {
Expand Down

0 comments on commit a512c30

Please sign in to comment.