fix sync model endpoint

This commit is contained in:
Mary Hipp 2024-02-21 14:45:30 -05:00 committed by psychedelicious
parent 782d15af13
commit 18904f79ef

View File

@ -74,7 +74,7 @@ type AddMainModelArg = {
type AddMainModelResponse = paths['/api/v2/models/add']['post']['responses']['201']['content']['application/json']; type AddMainModelResponse = paths['/api/v2/models/add']['post']['responses']['201']['content']['application/json'];
type SyncModelsResponse = paths['/api/v2/models/sync']['post']['responses']['201']['content']['application/json']; type SyncModelsResponse = paths['/api/v2/models/sync']['patch']['responses']['204']['content']['application/json'];
export type SearchFolderResponse = export type SearchFolderResponse =
paths['/api/v2/models/search']['get']['responses']['200']['content']['application/json']; paths['/api/v2/models/search']['get']['responses']['200']['content']['application/json'];
@ -259,7 +259,7 @@ export const modelsApi = api.injectEndpoints({
query: () => { query: () => {
return { return {
url: buildModelsUrl('sync'), url: buildModelsUrl('sync'),
method: 'POST', method: 'PATCH',
}; };
}, },
invalidatesTags: ['Model'], invalidatesTags: ['Model'],