fix(backend): typeormのbreaking changeに対応 (#16105)

* fix(backend): typeormのbreaking changeに対応

* attempt to fix test
This commit is contained in:
かっこかり
2025-05-27 13:50:45 +09:00
committed by GitHub
parent 47f4f11e3e
commit 07c2de3749
11 changed files with 27 additions and 27 deletions

View File

@@ -41,7 +41,7 @@ describe('/drive/files/create', () => {
idService = module.get(IdService);
const usersRepository = module.get<UsersRepository>(DI.usersRepository);
await usersRepository.delete({});
await usersRepository.createQueryBuilder().delete().execute();
root = await usersRepository.insert({
id: idService.gen(),
username: 'root',
@@ -50,7 +50,7 @@ describe('/drive/files/create', () => {
}).then(x => usersRepository.findOneByOrFail(x.identifiers[0]));
const userProfilesRepository = module.get<UserProfilesRepository>(DI.userProfilesRepository);
await userProfilesRepository.delete({});
await userProfilesRepository.createQueryBuilder().delete().execute();
await userProfilesRepository.insert({
userId: root.id,
});