mirror of
https://github.com/KevinMidboe/immich.git
synced 2025-10-29 17:40:28 +00:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user