⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.
TypeScript bookmarkbookmark-managercollaborationnextjsreact-nativeread-it-laterself-hostedtypescript
small changes
daniel31x135b8e1d53ccc2
diff --git a/lib/api/controllers/session/createSession.ts b/lib/api/controllers/session/createSession.tsindex c2ff37e8..c1a6aa7e 100644--- a/lib/api/controllers/session/createSession.ts+++ b/lib/api/controllers/session/createSession.ts@@ -21,12 +21,12 @@ export default async function createSession(jti: crypto.randomUUID(),},maxAge: expiryDateSecond || 604800,- secret: process.env.NEXTAUTH_SECRET,+ secret: process.env.NEXTAUTH_SECRET as string,});const tokenBody = await decode({token,- secret: process.env.NEXTAUTH_SECRET,+ secret: process.env.NEXTAUTH_SECRET as string,});const createToken = await prisma.accessToken.create({diff --git a/prisma/migrations/20240628013747_rename_fields/migration.sql b/prisma/migrations/20240628013747_rename_fields/migration.sqlnew file mode 100644index 00000000..6c63edd8--- /dev/null+++ b/prisma/migrations/20240628013747_rename_fields/migration.sql@@ -0,0 +1,21 @@+/*+ Warnings:++ - The values [SINGLEFILE] on the enum `LinksRouteTo` will be removed. If these variants are still used in the database, this will fail.+ - You are about to drop the column `archiveAsSinglefile` on the `User` table. All the data in the column will be lost.++*/+-- AlterEnum+BEGIN;+CREATE TYPE "LinksRouteTo_new" AS ENUM ('ORIGINAL', 'PDF', 'READABLE', 'MONOLITH', 'SCREENSHOT');+ALTER TABLE "User" ALTER COLUMN "linksRouteTo" DROP DEFAULT;+ALTER TABLE "User" ALTER COLUMN "linksRouteTo" TYPE "LinksRouteTo_new" USING ("linksRouteTo"::text::"LinksRouteTo_new");+ALTER TYPE "LinksRouteTo" RENAME TO "LinksRouteTo_old";+ALTER TYPE "LinksRouteTo_new" RENAME TO "LinksRouteTo";+DROP TYPE "LinksRouteTo_old";+ALTER TABLE "User" ALTER COLUMN "linksRouteTo" SET DEFAULT 'ORIGINAL';+COMMIT;++-- AlterTable+ALTER TABLE "User" DROP COLUMN "archiveAsSinglefile",+ADD COLUMN "archiveAsMonolith" BOOLEAN NOT NULL DEFAULT true;diff --git a/prisma/schema.prisma b/prisma/schema.prismaindex c0ad94f5..656da43d 100644--- a/prisma/schema.prisma+++ b/prisma/schema.prisma@@ -47,7 +47,7 @@ model User {linksRouteTo LinksRouteTo @default(ORIGINAL)preventDuplicateLinks Boolean @default(false)archiveAsScreenshot Boolean @default(true)- archiveAsSinglefile Boolean @default(true)+ archiveAsMonolith Boolean @default(true)archiveAsPDF Boolean @default(true)archiveAsWaybackMachine Boolean @default(false)isPrivate Boolean @default(false)@@ -59,7 +59,7 @@ enum LinksRouteTo {ORIGINALREADABLE- SINGLEFILE+ MONOLITHSCREENSHOT}