SchemaTypeの型計算量を削減 (#8332)
* schema typeの型計算量を削減 * reduce some type error * wip * fix * clean up * more shrink
This commit is contained in:
parent
b6db709e02
commit
fd8f8162e1
9 changed files with 57 additions and 105 deletions
|
@ -4,7 +4,7 @@ import generateNativeUserToken from '../server/api/common/generate-native-user-t
|
|||
import { genRsaKeyPair } from '@/misc/gen-key-pair';
|
||||
import { User } from '@/models/entities/user';
|
||||
import { UserProfile } from '@/models/entities/user-profile';
|
||||
import { getConnection } from 'typeorm';
|
||||
import { getConnection, ObjectLiteral } from 'typeorm';
|
||||
import { genId } from '@/misc/gen-id';
|
||||
import { UserKeypair } from '@/models/entities/user-keypair';
|
||||
import { UsedUsername } from '@/models/entities/used-username';
|
||||
|
@ -21,7 +21,7 @@ export async function createSystemUser(username: string) {
|
|||
|
||||
const keyPair = await genRsaKeyPair(4096);
|
||||
|
||||
let account!: User;
|
||||
let account!: User | ObjectLiteral;
|
||||
|
||||
// Start transaction
|
||||
await getConnection().transaction(async transactionalEntityManager => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue