mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 15:09:33 +01:00
fix: use access_token when deleting attachment
This commit is contained in:
@@ -65,7 +65,7 @@ export default class FileStorage {
|
||||
async deleteFile(filename, localOnly) {
|
||||
if (localOnly) return await this.fs.deleteFile(filename);
|
||||
|
||||
const token = await this.tokenManager.getToken();
|
||||
const token = await this.tokenManager.getAccessToken();
|
||||
const url = `${hosts.API_HOST}/s3?name=${filename}`;
|
||||
return await this.fs.deleteFile(filename, {
|
||||
url,
|
||||
|
||||
Reference in New Issue
Block a user