Fix correctness issues
This commit is contained in:
parent
91af4dc143
commit
d0302a72c3
4 changed files with 62 additions and 37 deletions
|
|
@ -99,6 +99,11 @@ export class Database {
|
|||
return this.documents.get(relativePath);
|
||||
}
|
||||
|
||||
public async deleteDocument(relativePath: RelativePath): Promise<void> {
|
||||
this.documents.delete(relativePath);
|
||||
await this.save();
|
||||
}
|
||||
|
||||
public async updatePath(
|
||||
oldRelativePath: RelativePath,
|
||||
newRelativePath: RelativePath
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue