From 698b59fa901af94ad8da53680794f5435aaf0e36 Mon Sep 17 00:00:00 2001 From: realaravinth Date: Mon, 1 Nov 2021 08:51:54 +0530 Subject: [PATCH] make metadata height and width nullable post 965f7edd163a caused panic with null values for metadata height and width --- schemas/schema.graphql | 4 ++-- templates/img.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/schemas/schema.graphql b/schemas/schema.graphql index 5a9b560..f5ff695 100644 --- a/schemas/schema.graphql +++ b/schemas/schema.graphql @@ -40,8 +40,8 @@ type MediaResource{ type MetaData { id: String! - originalWidth: Int! - originalHeight: Int! + originalWidth: Int + originalHeight: Int } diff --git a/templates/img.html b/templates/img.html index cd6e987..f1c25f2 100644 --- a/templates/img.html +++ b/templates/img.html @@ -1,7 +1,7 @@ <. let metadata = p.metadata.as_ref().unwrap(); .>