mirror of
https://github.com/sim1222/misskey.git
synced 2025-08-08 09:43:51 +09:00
refactor: migrate to typeorm 3.0 (#8443)
* wip * wip * wip * Update following.ts * wip * wip * wip * Update resolve-user.ts * maxQueryExecutionTime * wip * wip
This commit is contained in:
@ -188,7 +188,7 @@ export default class Connection {
|
||||
*/
|
||||
private async onApiRequest(payload: any) {
|
||||
// 新鮮なデータを利用するためにユーザーをフェッチ
|
||||
const user = this.user ? await Users.findOne(this.user.id) : null;
|
||||
const user = this.user ? await Users.findOneBy({ id: this.user.id }) : null;
|
||||
|
||||
const endpoint = payload.endpoint || payload.ep; // alias
|
||||
|
||||
@ -386,7 +386,7 @@ export default class Connection {
|
||||
}
|
||||
|
||||
private async updateUserProfile() {
|
||||
this.userProfile = await UserProfiles.findOne({
|
||||
this.userProfile = await UserProfiles.findOneBy({
|
||||
userId: this.user!.id,
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user