mirror of
https://github.com/pockethost/pockethost.git
synced 2025-06-04 13:16:41 +00:00
chore: discordAlert import refactor
This commit is contained in:
parent
39388fbaca
commit
6fb93ab5de
@ -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)
|
||||
|
@ -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'
|
||||
|
||||
|
@ -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'
|
||||
|
@ -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'
|
||||
|
@ -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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user