Skip to content

Commit

Permalink
Push notification moved out of db folder (minmatarfleet#707)
Browse files Browse the repository at this point in the history
  • Loading branch information
beautifulmim authored Sep 8, 2024
1 parent 4e8e012 commit 1290c44
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion frontend/app/src/helpers/notifications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion frontend/app/src/pages/account.astro
Original file line number Diff line number Diff line change
Expand Up @@ -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[] = []
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/src/pages/api/notifications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 1290c44

Please sign in to comment.