Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mattyatea committed Jun 12, 2024
1 parent 833031e commit e90fda3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
7 changes: 2 additions & 5 deletions packages/backend/src/models/RepositoryModule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
* SPDX-License-Identifier: AGPL-3.0-only
*/

import type { Provider } from '@nestjs/common';
import { Module } from '@nestjs/common';
import { DI } from '@/di-symbols.js';
import {
Expand All @@ -29,8 +28,6 @@ import {
MiDriveFolder,
MiEmoji,
MiEmojiRequest,
MiBubbleGameRecord,
MiFollowRequest,
MiFlash,
MiFlashLike,
MiFollowRequest,
Expand Down Expand Up @@ -82,8 +79,8 @@ import {
MiUserSecurityKey,
MiWebhook,
MiScheduledNote,
MiBubbleGameRecord
, MiReversiGame } from './_.js';
MiBubbleGameRecord } from './_.js';
import type { Provider } from '@nestjs/common';
import type { DataSource } from 'typeorm';

const $usersRepository: Provider = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/
import { Injectable } from '@nestjs/common';
import { setImmediate } from 'node:timers/promises';
import sanitizeHtml from 'sanitize-html';
import { Inject, Injectable } from '@nestjs/common';
Expand Down Expand Up @@ -93,13 +92,13 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
}

const notes = ps.noteIds ? await this.notesRepository.find({
where: { id: In(ps.noteIds), userId: user.id },
where: { id: In(ps.noteIds), userId: targetUser.id },
}) : [];

const report = await this.abuseUserReportsRepository.insert({
id: this.idService.gen(),
targetUserId: user.id,
targetUserHost: user.host,
targetUserId: targetUser.id,
targetUserHost: targetUser.host,
reporterId: me.id,
reporterHost: null,
comment: ps.comment,
Expand Down

0 comments on commit e90fda3

Please sign in to comment.