From e72764f19044a20a2c74775bd222b356837675fb Mon Sep 17 00:00:00 2001 From: Jon Hardie Date: Wed, 21 Apr 2021 17:15:55 +1200 Subject: [PATCH] Fix typo (#370) * Only show active devices in browse * - Only show active devices in browse - Refactor some stations APIs to return more info about what stations were added/updated and how many recordings were matched, if any. - Simpler get APIs for retrieving group devices, group users. * Revert docker files * Fix stations tests * Python formatting * Adding missing apidoc info * All api listing commands will automatically return all results if the user is a super-admin user. This PR adds an optional "view-mode" query param to these APIs, which, if set to "limited", will restrict results to items only directly viewable by the super-admin user. This is then plumbed through to the various database queries generated. This does not change any existing behaviour, as that is still the default. * Fix comparison for retired stations in where clause. * Fix viewAsSuperAdmin arg passing. * Addressing review feedback * Make bulk tagger deliver CPTV files instead of mp4 files. * Fix query * Grab correct file key * Grab correct file key --- models/Recording.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/Recording.ts b/models/Recording.ts index 42ac3f7b..c2d93a5a 100644 --- a/models/Recording.ts +++ b/models/Recording.ts @@ -675,7 +675,7 @@ from ( (acc, item) => { acc.RecordingId = item.RecordingId; acc.DeviceId = item.DeviceId; - acc.fileKey = item.fileKey; + acc.fileKey = item.rawFileKey; acc.fileMimeType = item.rawMimeType; acc.recordingDateTime = item.recordingDateTime; acc.duration = item.duration;