Skip to content

Commit 46175ee

Browse files
committed
fix: add CheckoutItem tag to API slice and enhance endpoints
1 parent a0b869b commit 46175ee

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)