diff options
| author | bobzel <zzzman@gmail.com> | 2023-02-27 15:08:45 -0500 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2023-02-27 15:08:45 -0500 |
| commit | af2a2c83868c87812e9ae54c8e3cced81374619a (patch) | |
| tree | daa3f79b93c22f9c0f90b00c2e6f843de6eedc36 /src/server/DashUploadUtils.ts | |
| parent | 536e1ed3f847b0e7343c1cf9eb7fc0c97818e171 (diff) | |
restructured getAnchor()/scrollFocus to be more consistent. added setterscript for computedFields. restructed getFieldsImpl to avoid making multiple requests for the same document due to timing issues by 'locking' a document cache with a promise before sending the server request. added rotation and fill color as animatable fields. fixed image cropping for
Diffstat (limited to 'src/server/DashUploadUtils.ts')
| -rw-r--r-- | src/server/DashUploadUtils.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/DashUploadUtils.ts b/src/server/DashUploadUtils.ts index 33809824f..f461cf3fa 100644 --- a/src/server/DashUploadUtils.ts +++ b/src/server/DashUploadUtils.ts @@ -501,7 +501,7 @@ export namespace DashUploadUtils { const parseExifData = async (source: string) => { const image = await request.get(source, { encoding: null }); - const { data, error } = await new Promise(resolve => { + const { data, error } = await new Promise<{ data: any; error: any }>(resolve => { new ExifImage({ image }, (error, data) => { let reason: Opt<string> = undefined; if (error) { |
