mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-23 07:42:10 +00:00
fix fmt
This commit is contained in:
parent
fc09c689bc
commit
e3f2eaa3c6
@ -25,16 +25,17 @@ export default class ProbeAPI extends BaseAPI<Probe, ProbeServiceType> {
|
||||
next: NextFunction
|
||||
) => {
|
||||
try {
|
||||
const globalConfig: GlobalConfig | null = await GlobalConfigService.findOneById({
|
||||
id: ObjectID.getZeroObjectID(),
|
||||
select: {
|
||||
host: true,
|
||||
useHttps: true,
|
||||
},
|
||||
props: {
|
||||
isRoot: true,
|
||||
},
|
||||
});
|
||||
const globalConfig: GlobalConfig | null =
|
||||
await GlobalConfigService.findOneById({
|
||||
id: ObjectID.getZeroObjectID(),
|
||||
select: {
|
||||
host: true,
|
||||
useHttps: true,
|
||||
},
|
||||
props: {
|
||||
isRoot: true,
|
||||
},
|
||||
});
|
||||
|
||||
return Response.sendJsonObjectResponse(req, res, {
|
||||
HOST: globalConfig?.host?.toString() || 'localhost',
|
||||
|
Loading…
Reference in New Issue
Block a user