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:
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user