mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-24 16:13:08 +02:00
コミット漏れ
This commit is contained in:
parent
238f923b41
commit
869854eae7
2 changed files with 5 additions and 6 deletions
|
@ -4,7 +4,6 @@ import * as util from 'node:util';
|
||||||
import { Inject, Injectable } from '@nestjs/common';
|
import { Inject, Injectable } from '@nestjs/common';
|
||||||
import IPCIDR from 'ip-cidr';
|
import IPCIDR from 'ip-cidr';
|
||||||
import PrivateIp from 'private-ip';
|
import PrivateIp from 'private-ip';
|
||||||
import got, * as Got from 'got';
|
|
||||||
import chalk from 'chalk';
|
import chalk from 'chalk';
|
||||||
import { buildConnector } from 'undici';
|
import { buildConnector } from 'undici';
|
||||||
import { DI } from '@/di-symbols.js';
|
import { DI } from '@/di-symbols.js';
|
||||||
|
|
|
@ -41,10 +41,10 @@ export class ApRequestService {
|
||||||
private httpRequestService: HttpRequestService,
|
private httpRequestService: HttpRequestService,
|
||||||
private loggerService: LoggerService,
|
private loggerService: LoggerService,
|
||||||
) {
|
) {
|
||||||
this.logger = this.loggerService?.getLogger('ap-request'); // なぜか TypeError: Cannot read properties of undefined (reading 'getLogger') と言われる
|
this.logger = this.loggerService.getLogger('ap-request'); // なぜか TypeError: Cannot read properties of undefined (reading 'getLogger') と言われる
|
||||||
this.undiciFetcher = new UndiciFetcher(this.httpRequestService.getStandardUndiciFetcherOption({
|
this.undiciFetcher = this.httpRequestService.createFetcher({
|
||||||
maxRedirections: 0,
|
maxRedirections: 0,
|
||||||
}), this.logger );
|
}, {}, this.logger);
|
||||||
}
|
}
|
||||||
|
|
||||||
@bindThis
|
@bindThis
|
||||||
|
@ -169,7 +169,7 @@ export class ApRequestService {
|
||||||
method: req.request.method,
|
method: req.request.method,
|
||||||
headers: req.request.headers,
|
headers: req.request.headers,
|
||||||
body,
|
body,
|
||||||
}
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -197,7 +197,7 @@ export class ApRequestService {
|
||||||
{
|
{
|
||||||
method: req.request.method,
|
method: req.request.method,
|
||||||
headers: req.request.headers,
|
headers: req.request.headers,
|
||||||
}
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
return await res.json();
|
return await res.json();
|
||||||
|
|
Loading…
Reference in a new issue