mirror of
https://github.com/pockethost/pockethost.git
synced 2025-06-07 06:36:43 +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 { DEBUG, DefaultSettingsService, SETTINGS } from '$constants'
|
||||||
import { PocketbaseReleaseDownloadService } from '$services'
|
import { PocketbaseReleaseDownloadService } from '$services'
|
||||||
import { LogLevelName, LoggerService } from '$shared'
|
import { LogLevelName, LoggerService } from '$shared'
|
||||||
import { discordAlert } from '$src/util/discordAlert'
|
import { discordAlert } from '$util'
|
||||||
|
|
||||||
const check = async () => {
|
const check = async () => {
|
||||||
DefaultSettingsService(SETTINGS)
|
DefaultSettingsService(SETTINGS)
|
||||||
|
@ -18,8 +18,7 @@ import {
|
|||||||
realtimeLog,
|
realtimeLog,
|
||||||
} from '$services'
|
} from '$services'
|
||||||
import { LogLevelName, LoggerService } from '$shared'
|
import { LogLevelName, LoggerService } from '$shared'
|
||||||
import { discordAlert } from '$src/util/discordAlert'
|
import { discordAlert, tryFetch } from '$util'
|
||||||
import { tryFetch } from '$util'
|
|
||||||
import EventSource from 'eventsource'
|
import EventSource from 'eventsource'
|
||||||
import { ErrorRequestHandler } from 'express'
|
import { ErrorRequestHandler } from 'express'
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ import {
|
|||||||
SETTINGS,
|
SETTINGS,
|
||||||
} from '$constants'
|
} from '$constants'
|
||||||
import { LoggerService, LogLevelName } from '$shared'
|
import { LoggerService, LogLevelName } from '$shared'
|
||||||
import { discordAlert } from '$src/util/discordAlert'
|
import { discordAlert } from '$util'
|
||||||
import Bottleneck from 'bottleneck'
|
import Bottleneck from 'bottleneck'
|
||||||
import { execSync } from 'child_process'
|
import { execSync } from 'child_process'
|
||||||
import fetch from 'node-fetch'
|
import fetch from 'node-fetch'
|
||||||
|
@ -17,7 +17,7 @@ import fs from 'fs'
|
|||||||
import http from 'http'
|
import http from 'http'
|
||||||
import https from 'https'
|
import https from 'https'
|
||||||
|
|
||||||
import { discordAlert } from '$src/util/discordAlert'
|
import { discordAlert } from '$util'
|
||||||
import { createProxyMiddleware } from 'http-proxy-middleware'
|
import { createProxyMiddleware } from 'http-proxy-middleware'
|
||||||
import { createIpWhitelistMiddleware } from './cidr'
|
import { createIpWhitelistMiddleware } from './cidr'
|
||||||
import { createVhostProxyMiddleware } from './createVhostProxyMiddleware'
|
import { createVhostProxyMiddleware } from './createVhostProxyMiddleware'
|
||||||
|
@ -2,6 +2,7 @@ export * from './PromiseAllocator'
|
|||||||
export * from './Settings'
|
export * from './Settings'
|
||||||
export * from './SyslogLogger'
|
export * from './SyslogLogger'
|
||||||
export * from './assert'
|
export * from './assert'
|
||||||
|
export * from './discordAlert'
|
||||||
export * from './downloadAndExtract'
|
export * from './downloadAndExtract'
|
||||||
export * from './env'
|
export * from './env'
|
||||||
export * from './exit'
|
export * from './exit'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user