test
This commit is contained in:
@@ -714,15 +714,15 @@ export default class DocumentsStore extends Store<Document> {
|
|||||||
};
|
};
|
||||||
|
|
||||||
@action
|
@action
|
||||||
update = async (
|
async update(
|
||||||
params: Partial<Document>,
|
params: Partial<Document>,
|
||||||
options?: Record<string, string | boolean | number | undefined>
|
options?: Record<string, string | boolean | number | undefined>
|
||||||
): Promise<Document> => {
|
): Promise<Document> {
|
||||||
const document = await super.update(params, options);
|
const document = await super.update(params, options);
|
||||||
const collection = this.getCollectionForDocument(document);
|
const collection = this.getCollectionForDocument(document);
|
||||||
void collection?.fetchDocuments({ force: true });
|
void collection?.fetchDocuments({ force: true });
|
||||||
return document;
|
return document;
|
||||||
};
|
}
|
||||||
|
|
||||||
@action
|
@action
|
||||||
unpublish = async (document: Document) => {
|
unpublish = async (document: Document) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user