rename PulbicAccessURL to PublicURL

This commit is contained in:
Abhinav 2022-01-24 16:33:33 +05:30
parent 90643627aa
commit 826f9a1b0f
2 changed files with 4 additions and 4 deletions

View file

@ -21,7 +21,7 @@ import {
EncryptedFileKey, EncryptedFileKey,
RemoveFromCollectionRequest, RemoveFromCollectionRequest,
CreatePublicAccessTokenRequest, CreatePublicAccessTokenRequest,
PublicAccessURL, PublicURL,
} from 'types/collection'; } from 'types/collection';
import { import {
COLLECTION_SORT_BY, COLLECTION_SORT_BY,
@ -600,7 +600,7 @@ export const createShareableURL = async (collection: Collection) => {
'X-Auth-Token': token, 'X-Auth-Token': token,
} }
); );
return resp.data as PublicAccessURL; return resp.data.result as PublicURL;
} catch (e) { } catch (e) {
logError(e, 'createShareableURL failed '); logError(e, 'createShareableURL failed ');
throw e; throw e;

View file

@ -17,10 +17,10 @@ export interface Collection {
keyDecryptionNonce: string; keyDecryptionNonce: string;
isDeleted: boolean; isDeleted: boolean;
isSharedCollection?: boolean; isSharedCollection?: boolean;
publicURLs?: PublicAccessURL[]; publicURLs?: PublicURL[];
} }
export interface PublicAccessURL { export interface PublicURL {
url: string; url: string;
deviceLimit: number; deviceLimit: number;
validTill: number; validTill: number;