From f09d05c9e3a5520b087242c933f7be7ebbaf688c Mon Sep 17 00:00:00 2001 From: NeKz Date: Sat, 8 Jun 2024 17:31:40 +0200 Subject: [PATCH] Improve backup message --- backup.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backup.ts b/backup.ts index 1518459..ae29717 100644 --- a/backup.ts +++ b/backup.ts @@ -4,6 +4,7 @@ // Requirements: .env (see .env.example) // Example usage: deno run --env -A ./docker/volumes/backups/autorender_db_latest.sql.gz ./kv_db_latest.zip.gz +import { format } from 'jsr:@std/fmt/bytes'; import { parseArgs } from 'jsr:@std/cli/parse-args'; import { basename } from 'jsr:@std/path/windows'; import { retry } from 'jsr:@std/async'; @@ -76,7 +77,7 @@ try { embeds: [ { color: 0x0480A5, - description: `Uploaded file \`${fileName}\` ${upload.fileId}`, + description: `Uploaded file \`${fileName}\` (${format(upload.contentLength)}) ${upload.contentMd5}`, }, ], }),