This commit is contained in:
tamaina 2023-07-19 07:03:07 +00:00
parent 4e7a26e6d5
commit 4c83663597

View file

@ -291,6 +291,8 @@ export class ApPersonService implements OnModuleInit {
await this.db.transaction(async transactionalEntityManager => { await this.db.transaction(async transactionalEntityManager => {
user = await transactionalEntityManager.save(new User({ user = await transactionalEntityManager.save(new User({
id: this.idService.genId(), id: this.idService.genId(),
avatarId: null,
bannerId: null,
createdAt: new Date(), createdAt: new Date(),
lastFetchedAt: new Date(), lastFetchedAt: new Date(),
name: truncate(person.name, nameLength), name: truncate(person.name, nameLength),