Remove the `patterns_ai_data` post from DB when resetting the CYS (#43499)

* Call the `/wc/private/ai/patterns` to remove the `patterns_ai_data` post from the db

* Add changefile(s) from automation for the following project(s): woocommerce-beta-tester

---------

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
Alba Rincón 2024-01-12 13:58:32 +01:00 committed by GitHub
parent 5edea79b41
commit be1c794387
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,4 @@
Significance: minor
Type: update
Remove the patterns_ai_data post from DB when resetting the CYS.

View File

@ -227,6 +227,11 @@ export function* resetCustomizeYourStore() {
path: API_NAMESPACE + '/tools/reset-cys', path: API_NAMESPACE + '/tools/reset-cys',
method: 'POST', method: 'POST',
} ); } );
yield apiFetch( {
path: '/wc/private/ai/patterns',
method: 'DELETE',
} );
} ); } );
} }