use delete method

This commit is contained in:
Niels Lyngsø
2023-02-03 19:48:11 +01:00
parent 3cf70a1b3c
commit be88714965

View File

@@ -199,7 +199,7 @@ export class UmbDocumentRepository implements UmbTreeRepository, UmbDetailReposi
throw new Error('Document key is missing');
}
const { error } = await this.#detailDataSource.trash(key);
const { error } = await this.#detailDataSource.delete(key);
if (!error) {
const notification = { data: { message: `Document deleted` } };