From c7e81a27ee3c9ad4fdc0d8f37a8d8f496f16ee70 Mon Sep 17 00:00:00 2001 From: Knee Cola Date: Tue, 30 Dec 2025 18:42:43 +0100 Subject: [PATCH] fix: update remaining imports in web-app actions to use shared-code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix imports in app/lib/actions/ that were still using relative paths ('../db-types') instead of the shared-code package. Updated files: - billActions.ts - emailActions.ts - locationActions.ts - monthActions.ts - navigationActions.ts - printActions.ts - userSettingsActions.ts All imports now correctly reference @evidencija-rezija/shared-code. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- web-app/app/lib/actions/billActions.ts | 2 +- web-app/app/lib/actions/emailActions.ts | 2 +- web-app/app/lib/actions/locationActions.ts | 2 +- web-app/app/lib/actions/monthActions.ts | 2 +- web-app/app/lib/actions/navigationActions.ts | 2 +- web-app/app/lib/actions/printActions.ts | 2 +- web-app/app/lib/actions/userSettingsActions.ts | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/web-app/app/lib/actions/billActions.ts b/web-app/app/lib/actions/billActions.ts index 26e4660..fd405bc 100644 --- a/web-app/app/lib/actions/billActions.ts +++ b/web-app/app/lib/actions/billActions.ts @@ -2,7 +2,7 @@ import { z } from 'zod'; import { getDbClient } from '../dbClient'; -import { Bill, BilledTo, FileAttachment, BillingLocation } from '../db-types'; +import { Bill, BilledTo, FileAttachment, BillingLocation } from '@evidencija-rezija/shared-code'; import { ObjectId } from 'mongodb'; import { withUser } from '@/app/lib/auth'; import { AuthenticatedUser } from '../types/next-auth'; diff --git a/web-app/app/lib/actions/emailActions.ts b/web-app/app/lib/actions/emailActions.ts index 4e08a4c..af64546 100644 --- a/web-app/app/lib/actions/emailActions.ts +++ b/web-app/app/lib/actions/emailActions.ts @@ -1,7 +1,7 @@ 'use server'; import { getDbClient } from '../dbClient'; -import { BillingLocation, EmailStatus } from '../db-types'; +import { BillingLocation, EmailStatus } from '@evidencija-rezija/shared-code'; import { extractShareId, validateShareChecksum } from '@evidencija-rezija/shared-code'; import { revalidatePath } from 'next/cache'; diff --git a/web-app/app/lib/actions/locationActions.ts b/web-app/app/lib/actions/locationActions.ts index 690f475..569a10d 100644 --- a/web-app/app/lib/actions/locationActions.ts +++ b/web-app/app/lib/actions/locationActions.ts @@ -2,7 +2,7 @@ import { z } from 'zod'; import { getDbClient } from '../dbClient'; -import { BillingLocation, FileAttachment, YearMonth, EmailStatus } from '../db-types'; +import { BillingLocation, FileAttachment, YearMonth, EmailStatus } from '@evidencija-rezija/shared-code'; import { ObjectId } from 'mongodb'; import { withUser } from '@/app/lib/auth'; import { AuthenticatedUser } from '../types/next-auth'; diff --git a/web-app/app/lib/actions/monthActions.ts b/web-app/app/lib/actions/monthActions.ts index d71def5..dd9b70d 100644 --- a/web-app/app/lib/actions/monthActions.ts +++ b/web-app/app/lib/actions/monthActions.ts @@ -2,7 +2,7 @@ import { getDbClient } from '../dbClient'; import { ObjectId } from 'mongodb'; -import { Bill, BillingLocation, YearMonth } from '../db-types'; +import { Bill, BillingLocation, YearMonth } from '@evidencija-rezija/shared-code'; import { AuthenticatedUser } from '../types/next-auth'; import { withUser } from '../auth'; import { unstable_noStore as noStore, unstable_noStore, revalidatePath } from 'next/cache'; diff --git a/web-app/app/lib/actions/navigationActions.ts b/web-app/app/lib/actions/navigationActions.ts index ae7615c..7d447eb 100644 --- a/web-app/app/lib/actions/navigationActions.ts +++ b/web-app/app/lib/actions/navigationActions.ts @@ -2,7 +2,7 @@ import { revalidatePath } from "next/cache"; import { redirect } from 'next/navigation'; -import { YearMonth } from "../db-types"; +import { YearMonth } from "@evidencija-rezija/shared-code"; export async function gotoHome({year, month}: YearMonth) { const path = `/home?year=${year}&month=${month}`; diff --git a/web-app/app/lib/actions/printActions.ts b/web-app/app/lib/actions/printActions.ts index 300043e..39de922 100644 --- a/web-app/app/lib/actions/printActions.ts +++ b/web-app/app/lib/actions/printActions.ts @@ -1,7 +1,7 @@ 'use server'; import { getDbClient } from '../dbClient'; -import { BillingLocation } from '../db-types'; +import { BillingLocation } from '@evidencija-rezija/shared-code'; import { AuthenticatedUser } from '../types/next-auth'; import { withUser } from '../auth'; import { unstable_noStore as noStore } from 'next/cache'; diff --git a/web-app/app/lib/actions/userSettingsActions.ts b/web-app/app/lib/actions/userSettingsActions.ts index 96560b8..b64ec3a 100644 --- a/web-app/app/lib/actions/userSettingsActions.ts +++ b/web-app/app/lib/actions/userSettingsActions.ts @@ -2,7 +2,7 @@ import { z } from 'zod'; import { getDbClient } from '../dbClient'; -import { UserSettings } from '../db-types'; +import { UserSettings } from '@evidencija-rezija/shared-code'; import { withUser } from '@/app/lib/auth'; import { AuthenticatedUser } from '../types/next-auth'; import { unstable_noStore as noStore } from 'next/cache';