turso migration

This commit is contained in:
Devin Zuczek
2026-09-27 15:38:52 -04:00
parent b32b16c1f0
commit 3f2cf2e700
34 changed files with 946 additions and 49 deletions
+2 -1
View File
@@ -74,6 +74,7 @@ import {
transferRoomOwnership,
unbanPlayerFromRoom,
updateRoomFields,
withDatabase,
writeAuditLog,
} from '@repo/domain'
import {
@@ -4455,4 +4456,4 @@ export const scheduled: ExportedHandlerScheduledHandler<Env> = (_controller, env
// Standalone entry: a Worker only runs `scheduled` when it's on the default export,
// so rooms keeps the object form the runtime requires to fire its `*/5 * * * *` cron.
export default { fetch: app.fetch, scheduled } satisfies ExportedHandler<Env>
export default withDatabase<Env>({ fetch: app.fetch, scheduled })