stash: integrity checks

This commit is contained in:
izzy
2025-11-26 15:45:58 +00:00
parent 13104d49cd
commit f77f43a83d
6 changed files with 142 additions and 2 deletions
@@ -382,6 +382,14 @@ export class AssetRepository {
return items.map((asset) => asset.deviceAssetId);
}
async getAllAssetPaths() {
return this.db.selectFrom('asset').select(['originalPath', 'encodedVideoPath']).stream();
}
async getAllAssetFilePaths() {
return this.db.selectFrom('asset_file').select(['path']).stream();
}
@GenerateSql({ params: [DummyValue.UUID] })
async getLivePhotoCount(motionId: string): Promise<number> {
const [{ count }] = await this.db