Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ node_modules/
tsconfig.tsbuildinfo
/prisma/sqlite.db
/prisma/sqlite.db-journal
/prisma/dev.db
/prisma/dev.db-journal

other/postcss.ignored

Expand All @@ -22,6 +24,7 @@ other/postcss.ignored
/playwright-report/
/playwright/.cache/
/other/cache.db
/cache.db

*.bkp.*

Expand Down
2 changes: 1 addition & 1 deletion app/routes/resources+/webauthn+/verify-registration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export async function action({ request }: ActionFunctionArgs) {
data: {
id: credential.id,
aaguid,
publicKey: Buffer.from(credential.publicKey),
publicKey: new Uint8Array(credential.publicKey),
userId: user.id,
webauthnUserId,
counter: credential.counter,
Expand Down
4 changes: 4 additions & 0 deletions app/utils/prisma.server.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { remember } from '@epic-web/remember'
import { PrismaBetterSQLite3 } from '@prisma/adapter-better-sqlite3'
import { PrismaClient } from '@prisma/client'
import chalk from 'chalk'
import pProps from 'p-props'
Expand All @@ -16,6 +17,9 @@ function getClient(): PrismaClient {
// that this only runs once per server restart and won't automatically be
// re-run per request like everything else is.
const client = new PrismaClient({
adapter: new PrismaBetterSQLite3({
url: process.env.DATABASE_URL!,
}),
log: [
{ level: 'query', emit: 'event' },
{ level: 'error', emit: 'stdout' },
Expand Down
Binary file added cache.db
Binary file not shown.
Loading
Loading