App logs fix

This commit is contained in:
Michał Zieliński
2025-03-03 08:32:46 +01:00
parent c8e8fa6fc5
commit da2db725da
2 changed files with 6 additions and 1 deletions

View File

@@ -26,6 +26,11 @@ public class LogsController : Controller
throw new Exception("Google Sheets API not initialized");
}
// until we move logs into firebase disable save for info and warnings
if (entry.Type == LogEntryType.Info || entry.Type == LogEntryType.Warning) {
return;
}
var type = entry.LogType switch
{
LogType.Import => "Import",