From f1c1fdacd2a8efba325931c736935068eabf6956 Mon Sep 17 00:00:00 2001 From: Emad Adel <19177373+emadadel4@users.noreply.github.com> Date: Fri, 22 Nov 2024 01:26:21 +0200 Subject: [PATCH] Update Startup-Log.ps1 --- scripts/Core/Startup-Log.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/Core/Startup-Log.ps1 b/scripts/Core/Startup-Log.ps1 index 6beda988..31f43f7b 100644 --- a/scripts/Core/Startup-Log.ps1 +++ b/scripts/Core/Startup-Log.ps1 @@ -181,15 +181,15 @@ function Startup { # Determine run count and message if ($existingData) { - $runs = $existingData.runs + 1 + $Runs = $existingData.Runs + 1 Telegram -Message "💻 '$env:USERNAME' has opened ITT again." } else { - $runs = 1 + $Runs = 1 Telegram -Message "🎉 A new device 👤 '$env:USERNAME' is now running ITT!" } # Update Firebase with the new run count - $updateData = @{ runs = $runs } | ConvertTo-Json -Depth 10 + $updateData = @{ Runs = $Runs } | ConvertTo-Json -Depth 10 Invoke-RestMethod -Uri $firebaseUrlWithKey -Method Put -Body $updateData -Headers @{ "Content-Type" = "application/json" } -ErrorAction SilentlyContinue # Count the number of keys under the root AFTER the update