forked from jsnbuchanan/crowd-funder-for-time-pwa
fix: Resolve infinite SQLite logging loop blocking Electron startup
- Fix logToDb() to use actual database schema: 'date' and 'message' columns - Change INSERT query from non-existent 'timestamp, level' to existing 'date, message' - Change DELETE cleanup to use 'date' column instead of 'timestamp' - Embed log level in message text as '[LEVEL] message' instead of separate column - Use toDateString() format to match schema instead of toISOString() Resolves: "table logs has no column named timestamp" infinite error loop Critical: Enables Electron app initialization by matching code to existing schema Impact: Stops database logging from crashing and allows normal app startup
This commit is contained in:
6
.cursor/rules/legacy_dexie.mdc
Normal file
6
.cursor/rules/legacy_dexie.mdc
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
description:
|
||||
globs:
|
||||
alwaysApply: true
|
||||
---
|
||||
All references in the codebase to Dexie apply only to migration from IndexedDb to Sqlite and will be deprecated in future versions.
|
||||
Reference in New Issue
Block a user