Skip to content

Commit 056ee19

Browse files
committed
Fix Build
1 parent a3c16c7 commit 056ee19

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

web/app/_actions/subscription.actions.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use server'
22
import axios from 'axios'
33
import type z from 'zod'
4-
//import type { Level2Keys } from '@/lib/helpers/typescriptTyping'
4+
import type { Level2Keys } from '@/lib/helpers/typescriptTyping'
55
import { subscribeSchema } from '@/lib/zodSchemas/zodSchemas'
66
import { validateFormRequest } from '../api/forms/validateFormRequest'
77

@@ -11,7 +11,7 @@ const SUBSCRIBER_LIST_ID_EN = process.env.MAKE_SUBSCRIBER_LIST_ID_EN
1111
const SUBSCRIBER_LIST_ID_NO = process.env.MAKE_SUBSCRIBER_LIST_ID_NO
1212
const MAKE_API_USER = process.env.MAKE_API_USERID || ''
1313

14-
const newsletterCategoryMap = {
14+
export const newsletterCategoryMap = {
1515
no: {
1616
generalNews: 'generelle nyheter',
1717
Company: 'generelle nyheter',
@@ -33,7 +33,7 @@ const newsletterCategoryMap = {
3333
}
3434

3535
export type newsletterCategoryLocale = keyof typeof newsletterCategoryMap
36-
//type newsletterCategoryKeys = Level2Keys<typeof newsletterCategoryMap>
36+
export type newsletterCategoryKeys = Level2Keys<typeof newsletterCategoryMap>
3737

3838
const subscriberApi = axios.create({
3939
baseURL: MAKE_SUBSCRIBER_API_BASE_URL,

web/app/api/rss/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
type newsletterCategoryKeys,
1010
type newsletterCategoryLocale,
1111
newsletterCategoryMap,
12-
} from '../newsletter/subscription/route'
12+
} from '@/app/_actions/subscription.actions'
1313
import { type LatestNewsType, latestMagazine, latestNews } from './groq.global'
1414

1515
const generateRssFeed = async (locale: 'en_GB' | 'nb_NO') => {

0 commit comments

Comments
 (0)