debug: add logging to get_categories + better error details in CalendarPluginPage
This commit is contained in:
parent
a202c5d079
commit
5069472e19
File diff suppressed because one or more lines are too long
|
|
@ -19,7 +19,7 @@
|
|||
background: #13131f;
|
||||
}
|
||||
</style>
|
||||
<script type="module" crossorigin src="/assets/main-BZoJ6Hxg.js"></script>
|
||||
<script type="module" crossorigin src="/assets/main-OHW3omcP.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/main-B1PBee3I.css">
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
|||
|
|
@ -80,6 +80,7 @@ end
|
|||
|
||||
-- Get all non-deleted categories
|
||||
function M.get_categories()
|
||||
print("get_categories called")
|
||||
return verstak.db.query(
|
||||
"SELECT id, name, color, icon, sort_order FROM categories WHERE deleted = 0 ORDER BY sort_order"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -107,6 +107,7 @@
|
|||
})
|
||||
} catch (e) {
|
||||
console.error('[CalendarPluginPage] loadCalendarData:', e)
|
||||
console.log('[CalendarPluginPage] error details:', JSON.stringify({message: String(e), stack: e?.stack}))
|
||||
error = String(e)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue