chore: discordAlert import refactor

This commit is contained in:
Ben Allfree 2024-02-29 03:26:43 -08:00
parent 39388fbaca
commit 6fb93ab5de
5 changed files with 5 additions and 5 deletions

View File

@ -1,7 +1,7 @@
import { DEBUG, DefaultSettingsService, SETTINGS } from '$constants'
import { PocketbaseReleaseDownloadService } from '$services'
import { LogLevelName, LoggerService } from '$shared'
import { discordAlert } from '$src/util/discordAlert'
import { discordAlert } from '$util'
const check = async () => {
DefaultSettingsService(SETTINGS)

View File

@ -18,8 +18,7 @@ import {
realtimeLog,
} from '$services'
import { LogLevelName, LoggerService } from '$shared'
import { discordAlert } from '$src/util/discordAlert'
import { tryFetch } from '$util'
import { discordAlert, tryFetch } from '$util'
import EventSource from 'eventsource'
import { ErrorRequestHandler } from 'express'

View File

@ -7,7 +7,7 @@ import {
SETTINGS,
} from '$constants'
import { LoggerService, LogLevelName } from '$shared'
import { discordAlert } from '$src/util/discordAlert'
import { discordAlert } from '$util'
import Bottleneck from 'bottleneck'
import { execSync } from 'child_process'
import fetch from 'node-fetch'

View File

@ -17,7 +17,7 @@ import fs from 'fs'
import http from 'http'
import https from 'https'
import { discordAlert } from '$src/util/discordAlert'
import { discordAlert } from '$util'
import { createProxyMiddleware } from 'http-proxy-middleware'
import { createIpWhitelistMiddleware } from './cidr'
import { createVhostProxyMiddleware } from './createVhostProxyMiddleware'

View File

@ -2,6 +2,7 @@ export * from './PromiseAllocator'
export * from './Settings'
export * from './SyslogLogger'
export * from './assert'
export * from './discordAlert'
export * from './downloadAndExtract'
export * from './env'
export * from './exit'