Websocket basic

Websocket basic
This commit is contained in:
yannfrendo
2023-11-23 17:02:45 +01:00
parent 867ace738d
commit 0ac9f152cf
12 changed files with 56 additions and 13 deletions

View File

@@ -215,6 +215,14 @@ export class JobService {
this.communicationRepository.send(CommunicationEvent.UPLOAD_SUCCESS, asset.ownerId, mapAsset(asset));
}
}
case JobName.SIDECAR_WRITE: {
const [asset] = await this.assetRepository.getByIds([item.data.id]);
if (asset) {
this.communicationRepository.send(CommunicationEvent.ASSET_UPDATE, asset.ownerId, mapAsset(asset));
}
break;
}
}
// In addition to the above jobs, all of these should queue `SEARCH_INDEX_ASSET`