refactor: prefix Mi for all entities (#11719)

* wip

* wip

* wip

* wip

* Update RepositoryModule.ts

* wip

* wip

* wip

* Revert "wip"

This reverts commit c1c13b37d2aaf3c65bc148212da302b0eb7868bf.
This commit is contained in:
syuilo 2023-08-16 17:51:28 +09:00 committed by GitHub
parent 9264ca336b
commit 792622aead
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
229 changed files with 1990 additions and 1990 deletions

View file

@ -6,7 +6,7 @@
import { Injectable } from '@nestjs/common';
import type { Packed } from '@/misc/json-schema.js';
import type { } from '@/models/entities/Blocking.js';
import type { Instance } from '@/models/entities/Instance.js';
import type { MiInstance } from '@/models/entities/Instance.js';
import { MetaService } from '@/core/MetaService.js';
import { bindThis } from '@/decorators.js';
import { UtilityService } from '../UtilityService.js';
@ -22,7 +22,7 @@ export class InstanceEntityService {
@bindThis
public async pack(
instance: Instance,
instance: MiInstance,
): Promise<Packed<'FederationInstance'>> {
const meta = await this.metaService.fetch();
return {
@ -52,7 +52,7 @@ export class InstanceEntityService {
@bindThis
public packMany(
instances: Instance[],
instances: MiInstance[],
) {
return Promise.all(instances.map(x => this.pack(x)));
}