Skip to content

Commit

Permalink
tscのチェックエラー修正
Browse files Browse the repository at this point in the history
  • Loading branch information
tar-bin committed Dec 20, 2024
1 parent a499f7d commit ba6f8e2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
private loggerService: LoggerService,
private driveService: DriveService,
) {
super(meta, paramDef, async (ps, me, _, file, cleanup, ip, headers) => {
super(meta, paramDef, async (ps, me, _, reply, file, cleanup, ip, headers) => {
const logger = this.loggerService.getLogger('api:drive:files:create');

if (!file) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
private driveFileEntityService: DriveFileEntityService,
private globalEventService: GlobalEventService,
) {
super(meta, paramDef, async (ps, me, _token, _file, _cleanup, ip, headers) => {
super(meta, paramDef, async (ps, me, _token, reply, _file, _cleanup, ip, headers) => {
const logger = this.loggerService.getLogger('api:drive:files:upload-from-url');
const hash = createHash('sha256').update(`${ps.folderId}:${ps.url}:${ps.isSensitive}`).digest('base64');
logger.setContext({ userId: me.id, hash, ip, headers });
Expand Down
2 changes: 1 addition & 1 deletion packages/backend/src/server/api/endpoints/i.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
private loggerService: LoggerService,
private userEntityService: UserEntityService,
) {
super(meta, paramDef, async (ps, user, token, _file, _cleanup, ip, headers) => {
super(meta, paramDef, async (ps, user, token, reply, _file, _cleanup, ip, headers) => {
const isSecure = token == null;

const logger = this.loggerService.getLogger('api:account:i');
Expand Down
2 changes: 1 addition & 1 deletion packages/backend/src/server/api/endpoints/users/show.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
private perUserPvChart: PerUserPvChart,
private apiLoggerService: ApiLoggerService,
) {
super(meta, paramDef, async (ps, me, _1, _2, _3, ip) => {
super(meta, paramDef, async (ps, me, _1, reply, _2, _3, ip) => {
let user;

const isModerator = await this.roleService.isModerator(me);
Expand Down

0 comments on commit ba6f8e2

Please sign in to comment.