Failing build fix.

This commit is contained in:
Pushkar Anand 2020-09-20 20:53:48 +05:30
parent f9ee680c8f
commit 2fa452e01f

View file

@ -16,6 +16,9 @@ export interface fileData {
title: string;
deviceFolder: string;
};
src: string,
w: number,
h: number,
encryptedPassword: string;
encryptedPasswordIV: string;
file?: string;
@ -55,7 +58,7 @@ export const getPreview = async (token: string, data: fileData, key: string) =>
`${ENDPOINT}/encrypted-files/preview/${data.id}`,
{ token }, null, { responseType: 'arraybuffer' },
);
const decrypted = await getFileUsingWorker({
const decrypted: any = await getFileUsingWorker({
...data,
file: resp.data,
}, key);