* #506 fix: Deleting a file does not delete from fs.files * test added to check that GridStoreAdapter deleteFile removes from fs.files and fs.chunks
This commit is contained in:
committed by
Florent Vilmart
parent
b7d15cc37f
commit
19080ed7e7
@@ -43,7 +43,7 @@ export class GridStoreAdapter extends FilesAdapter {
|
||||
|
||||
deleteFile(filename: string) {
|
||||
return this._connect().then(database => {
|
||||
let gridStore = new GridStore(database, filename, 'w');
|
||||
let gridStore = new GridStore(database, filename, 'r');
|
||||
return gridStore.open();
|
||||
}).then((gridStore) => {
|
||||
return gridStore.unlink();
|
||||
|
||||
Reference in New Issue
Block a user