mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-23 22:45:11 +00:00
fix(backend): lint and typecheck
This commit is contained in:
parent
663c06be00
commit
360d71278a
1 changed files with 9 additions and 10 deletions
|
@ -80,9 +80,9 @@ class HttpsRequestServiceAgent extends https.Agent {
|
|||
}
|
||||
|
||||
@bindThis
|
||||
public createConnection(options: Object, callback?: Function): net.Socket {
|
||||
public createConnection(options: net.NetConnectOpts, callback?: (err: unknown, stream: net.Socket) => void): net.Socket {
|
||||
const socket = super.createConnection(options, callback)
|
||||
.on('connect', ()=>{
|
||||
.on('connect', () => {
|
||||
const address = socket.remoteAddress;
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
if (address && ipaddr.isValid(address)) {
|
||||
|
@ -110,7 +110,6 @@ class HttpsRequestServiceAgent extends https.Agent {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
@Injectable()
|
||||
export class HttpRequestService {
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue