From 5c86f4f40ac27306fbe845eccc8576084aecdf05 Mon Sep 17 00:00:00 2001 From: Oscar Lorentzon Date: Tue, 14 Nov 2023 19:15:42 +0100 Subject: [PATCH] feat: request creator in data provider --- src/api/provider/GraphConverter.ts | 2 +- src/api/provider/GraphQueryCreator.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/api/provider/GraphConverter.ts b/src/api/provider/GraphConverter.ts index 8bb8fe42..0eb327c0 100644 --- a/src/api/provider/GraphConverter.ts +++ b/src/api/provider/GraphConverter.ts @@ -159,7 +159,7 @@ export class GraphConverter { source.thumb = source.thumb ?? { id: null, url: thumbUrl }; source.cluster = source.sfm_cluster ?? { id: null, url: null }; - source.creator = { id: null, username: null }; + source.creator = source.creator ?? { id: null, username: null }; source.owner = source.organization ?? { id: null }; source.mesh = source.mesh ?? { id: null, url: null }; diff --git a/src/api/provider/GraphQueryCreator.ts b/src/api/provider/GraphQueryCreator.ts index 1ab58234..8a075bd4 100644 --- a/src/api/provider/GraphQueryCreator.ts +++ b/src/api/provider/GraphQueryCreator.ts @@ -26,6 +26,7 @@ export class GraphQueryCreator { 'computed_altitude', 'computed_compass_angle', 'computed_rotation', + 'creator', 'exif_orientation', 'height', 'merge_cc',