diff --git a/frontend/app/src/helpers/notifications.ts b/frontend/app/src/helpers/notifications.ts index cc2ed2a5..ee09aa68 100644 --- a/frontend/app/src/helpers/notifications.ts +++ b/frontend/app/src/helpers/notifications.ts @@ -8,7 +8,7 @@ import { strip_markdown } from '@helpers/string' import { get_player_icon } from '@helpers/eve_image_server'; import { fetch_fleet_by_id, fetch_fleet_users } from '@helpers/fetching/fleets' -import { get_all_subscriptions, remove_subscription } from '@helpers/db/push_notification_subscriptions' +import { get_all_subscriptions, remove_subscription } from '@helpers/push_notification_subscriptions' import { unique } from '@helpers/array' import webpush from 'web-push' diff --git a/frontend/app/src/helpers/db/push_notification_subscriptions.ts b/frontend/app/src/helpers/push_notification_subscriptions.ts similarity index 100% rename from frontend/app/src/helpers/db/push_notification_subscriptions.ts rename to frontend/app/src/helpers/push_notification_subscriptions.ts diff --git a/frontend/app/src/middleware.ts b/frontend/app/src/middleware.ts index 5836bd41..cfcf6a56 100644 --- a/frontend/app/src/middleware.ts +++ b/frontend/app/src/middleware.ts @@ -2,7 +2,7 @@ import { i18n } from '@helpers/i18n' import { prod_error_messages } from '@helpers/env' import type { Character } from '@dtypes/api.minmatar.org' import { get_primary_characters } from '@helpers/api.minmatar.org/characters' -import { remove_subscription } from '@helpers/db/push_notification_subscriptions' +import { remove_subscription } from '@helpers/push_notification_subscriptions' const ONE_DAY_IN_MS = 24*60*60*1000 diff --git a/frontend/app/src/pages/account.astro b/frontend/app/src/pages/account.astro index b2125961..2c326907 100644 --- a/frontend/app/src/pages/account.astro +++ b/frontend/app/src/pages/account.astro @@ -27,7 +27,7 @@ import type { Character, Corporation, EveCharacterProfile } from '@dtypes/api.mi import type { NotificationSubscription, CorporationObject } from '@dtypes/layout_components' import { get_characters } from '@helpers/api.minmatar.org/characters' import { get_user_character } from '@helpers/fetching/characters' -import { get_user_subscriptions } from '@helpers/db/push_notification_subscriptions' +import { get_user_subscriptions } from '@helpers/push_notification_subscriptions' import { get_all_corporations } from '@helpers/api.minmatar.org/corporations' let pilots:Character[] = [] diff --git a/frontend/app/src/pages/api/notifications.ts b/frontend/app/src/pages/api/notifications.ts index e9547e3e..1fb61611 100644 --- a/frontend/app/src/pages/api/notifications.ts +++ b/frontend/app/src/pages/api/notifications.ts @@ -3,7 +3,7 @@ import type { User } from '@dtypes/jwt' import * as jose from 'jose' import { is_prod_mode } from '@helpers/env' import { HTTP_404_Not_Found, HTTP_403_Forbidden, HTTP_200_Success, HTTP_500_Server_Error } from '@helpers/http_responses' -import { create_subscription, remove_subscription } from '@helpers/db/push_notification_subscriptions' +import { create_subscription, remove_subscription } from '@helpers/push_notification_subscriptions' export async function POST({ request, cookies, redirect }) { if (request.headers.get("Content-Type") !== "application/json")