fix embbed link to document

This commit is contained in:
Arnaud D. Natali 2023-09-26 14:03:29 +02:00 committed by GitHub
commit e9e24040c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,14 +51,8 @@ export default class Files extends BaseSuperAdmin {
} }
} }
public async getUploadLink(uid: string) { public getUploadLink(uid: string): string {
const url = new URL(this.baseURl.concat(`/download/${uid}`)); return this.baseURl.concat(`/download/${uid}`);
try {
return await this.getRequest<File>(url);
} catch (err) {
this.onError(err);
return Promise.reject(err);
}
} }
public async getByUid(uid: string, q?: any): Promise<File> { public async getByUid(uid: string, q?: any): Promise<File> {