Skip to content

Commit f4de29e

Browse files
committed
fix: update drizzle config
1 parent cf9b470 commit f4de29e

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

drizzle.config.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import type { Config } from "drizzle-kit"
44
export default {
55
schema: "./src/server/db/schema.ts",
66
out: "./drizzle/migrations",
7-
driver: "pg",
7+
dialect: "postgresql",
88
dbCredentials: {
9-
connectionString: env.DATABASE_URL,
9+
url: env.DATABASE_URL,
1010
},
1111
} satisfies Config

src/server/actions/workshop.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ export async function startWorkshopAction(workshopId: string) {
121121
)
122122
revalidateTag(`workshops-${workshopId}`)
123123

124-
125124
return {
126125
error: null,
127126
}
@@ -148,7 +147,7 @@ export async function MarkWorkshopHasCompleted(workshopId: string) {
148147
.where(
149148
and(eq(workshops.id, workshopId), eq(workshops.organizerId, user.id))
150149
)
151-
150+
152151
revalidateTag(`workshops-${workshopId}`)
153152

154153
return {

0 commit comments

Comments
 (0)