Update server dependencies and fixed Typeorm API changes in new version (#276)

* Fixed dependencies

* Adapt typeorm API to be compatible with new version

* Fixed typeorm API in tests

* Remove console.log
This commit is contained in:
Alex
2022-06-29 13:39:58 -05:00
committed by GitHub
parent 5f00d8b9c6
commit a2e1d4caa2
13 changed files with 1166 additions and 1247 deletions

View File

@@ -15,8 +15,10 @@ export class DeviceInfoService {
async create(createDeviceInfoDto: CreateDeviceInfoDto, authUser: AuthUserDto) {
const res = await this.deviceRepository.findOne({
deviceId: createDeviceInfoDto.deviceId,
userId: authUser.id,
where: {
deviceId: createDeviceInfoDto.deviceId,
userId: authUser.id,
},
});
if (res) {