This commit is contained in:
Madison Grubb
2026-02-11 22:38:50 -05:00
parent b7046dc0e6
commit dc92c981e4
10 changed files with 1772 additions and 2280 deletions

View File

@@ -6,7 +6,7 @@ import { migrateFeedsToDevices } from '../utils/migrateFeedsToDevices.js'
* so credentials are printed in the terminal before any request.
* Close DB on server shutdown to avoid native sqlite3 crashes in worker teardown.
*/
// eslint-disable-next-line no-undef
export default defineNitroPlugin((nitroApp) => {
void getDb().then(() => migrateFeedsToDevices())
nitroApp.hooks.hook('close', () => {

View File

@@ -86,7 +86,6 @@ export function broadcastToSession(sessionId, message) {
}
}
// eslint-disable-next-line no-undef
export default defineNitroPlugin((nitroApp) => {
nitroApp.hooks.hook('ready', async () => {
const server = nitroApp.h3App.server || nitroApp.h3App.nodeServer