Skip to content

Commit

Permalink
fix filtering issue on users
Browse files Browse the repository at this point in the history
  • Loading branch information
zuies committed Jan 22, 2024
1 parent 827d489 commit fef90c4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/store/slices/announcementsSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ const createAnnouncementsSlice: StateCreator<IAnnouncements> = (set, get) => ({
page,
limit,
sortBy,
ngu,
timeZone,
startDate,
endDate,
Expand All @@ -24,7 +23,6 @@ const createAnnouncementsSlice: StateCreator<IAnnouncements> = (set, get) => ({
...(timeZone ? { timeZone } : {}),
...(startDate ? { startDate } : {}),
...(endDate ? { endDate } : {}),
...(ngu ? { name } : {}),
};

const { data } = await axiosInstance.get(
Expand Down
3 changes: 3 additions & 0 deletions src/store/slices/platformSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ const createPlatfromSlice: StateCreator<IPlatfrom> = (set, get) => ({
platformId,
property = 'channel',
name,
ngu,
sortBy,
page,
limit,
Expand All @@ -89,6 +90,8 @@ const createPlatfromSlice: StateCreator<IPlatfrom> = (set, get) => ({

if (name) params.append('name', name);

if (ngu) params.append('ngu', ngu);

if (page !== undefined) {
params.append('page', page.toString());
}
Expand Down
1 change: 0 additions & 1 deletion src/store/types/IAnnouncements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ export interface IRetrieveAnnouncementsProps {
page: number;
limit: number;
sortBy?: string;
ngu?: string;
community: string;
startDate?: string;
endDate?: string;
Expand Down
1 change: 1 addition & 0 deletions src/store/types/IPlatform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export interface IRetrivePlatformRolesOrChannels {
limit?: number;
sortBy?: string;
name?: string;
ngu?: string;
platformId: string;
property: 'channel' | 'role' | 'guildMember';
}
Expand Down

0 comments on commit fef90c4

Please sign in to comment.