Skip to content

Commit 2fcd732

Browse files
authored
Merge pull request #1444 from AppQuality/fix-vari-2
fix: add CheckoutItem tag to API slice and enhance endpoints
2 parents 8bf0fa5 + 46175ee commit 2fcd732

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/features/api/api.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export const apiSlice = createApi({
3737
'Plans',
3838
'Users',
3939
'EvaluationRules',
40+
'CheckoutItem',
4041
],
4142
endpoints: () => ({}),
4243
});

src/features/api/apiTags.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,10 @@ unguessApi.enhanceEndpoints({
313313
invalidatesTags: ['Plans'],
314314
},
315315
patchPlansByPidStatus: {
316-
invalidatesTags: ['Plans', 'Projects'],
316+
invalidatesTags: ['Plans', 'Projects', 'CheckoutItem'],
317+
},
318+
getPlansByPidCheckoutItem: {
319+
providesTags: ['CheckoutItem'],
317320
},
318321
deleteProjectsByPid: {
319322
invalidatesTags: ['Projects'],

0 commit comments

Comments
 (0)