Skip to content

Commit 409f1bf

Browse files
committed
fix: code checks errors
1 parent 32245f6 commit 409f1bf

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.prettierrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"importOrderSeparation": false,
2727
"importOrderSpecifiers": true,
2828
"importOrderBuiltinModulesToTop": true,
29-
"importOrderParsePlugins": ["typescript", "jsx", "decorators-legacy"],
29+
"importOrderParserPlugins": ["typescript", "jsx", "decorators-legacy"],
3030
"importOrderMergeDuplicateImports": true,
3131
"importOrderCombineTypeAndValueImports": true,
3232
"tailwindAttributes": ["tw"],

src/app/(app)/workshop/[workshopId]/page.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ export default async function WorkshopPage({ params }: WorkshopPageProps) {
103103
{getExactScheduled(workshop.scheduled)}
104104
</p>
105105
</div>
106+
106107
<div className="flex items-center gap-2">
107108
<Icons.watch
108109
className="size-4 text-muted-foreground"
@@ -130,7 +131,7 @@ export default async function WorkshopPage({ params }: WorkshopPageProps) {
130131
</React.Suspense>
131132

132133
<div className="flex w-full justify-end">
133-
{isCurrentUserWorkshop ? (
134+
{!isCurrentUserWorkshop ? (
134135
<form action={registerUserAndNotify}>
135136
<RegisterButton />
136137
</form>

src/server/actions/workshop.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ export async function deleteWorkshopAction(workshopId: string) {
8282

8383
await db
8484
.delete(workshops)
85-
.where(and(eq(workshops.organizerId, user.id), eq(workshops.id, workshopId)))
85+
.where(
86+
and(eq(workshops.organizerId, user.id), eq(workshops.id, workshopId))
87+
)
8688

8789
revalidateTag(`workshops-${user.id}`)
8890

0 commit comments

Comments
 (0)