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
@@ -154,7 +154,7 @@ export class AssetService {
public async getAssetThumbnail(assetId: string): Promise<StreamableFile> {
try {
const asset = await this.assetRepository.findOne({ id: assetId });
const asset = await this.assetRepository.findOne({ where: { id: assetId } });
if (!asset) {
throw new NotFoundException('Asset not found');
}