Fix typescript build errors

This commit is contained in:
ypratama committed 2026-08-12 16:26:11 +07:00
1 parent f3f6137b5c
commit ec6b58f61d
4 files changed
+4 -10

No files matched your search

+1 -5
View File
@@ -1,11 +1,7 @@
import { PrismaClient } from '@prisma/client'
const prisma = new PrismaClient({
datasources: {
db: {
url: 'file:dev.db'
}
}
datasourceUrl: process.env.DATABASE_URL
})
async function main() {
+2 -4
View File
@@ -1,9 +1,7 @@
import { PrismaClient } from '@prisma/client'
import { PrismaLibSql } from '@prisma/adapter-libsql'
const adapter = new PrismaLibSql({
url: 'file:dev.db',
const prisma = new PrismaClient({
datasourceUrl: process.env.DATABASE_URL
})
const prisma = new PrismaClient({ adapter })
async function main() {
const items = await prisma.item.findMany({
+1 -1
View File
@@ -4,7 +4,7 @@ import { redirect } from 'next/navigation'
import { revalidatePath } from 'next/cache'
import ExportButton from '@/components/ExportButton'
import { sendTelegramMessage } from '@/lib/telegram'
import CategorySelectListener from '@/components/CategorySelectListener'
import CategorySelectListener from '@/components/categorySelectListener'
const formatType = (t: string) => {
if (t === 'billed') return 'Manage Service'