Skip to content
This repository has been archived by the owner on Aug 15, 2023. It is now read-only.

Commit

Permalink
fix(taboule): clean query configuration query filters
Browse files Browse the repository at this point in the history
  • Loading branch information
ascariandrea committed Dec 14, 2022
1 parent 260b942 commit 3add6fa
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 23 deletions.
5 changes: 1 addition & 4 deletions packages/taboule/src/config/tiktok/tiktokPersonalForYou.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,7 @@ export const tikTokPersonalForYou: GetTabouleQueryConf<
ValidateOutput: false,
Query: {
...query,
filter: {
...filter,
nature: ForYouType.value,
},
filter,
},
} as any),
TE.map((content) => ({
Expand Down
6 changes: 1 addition & 5 deletions packages/taboule/src/config/tiktok/tiktokPersonalNative.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,7 @@ export const tikTokPersonalNative: GetTabouleQueryConf<
...query,
amount,
skip,
filter: {
description: undefined,
...filter,
nature: NativeType.value,
},
filter,
},
} as any),
TE.map((content) => ({
Expand Down
3 changes: 1 addition & 2 deletions packages/taboule/src/config/tiktok/tiktokPersonalProfile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ export const tikTokPersonalProfile: GetTabouleQueryConf<
Query: {
...query,
filter: {
...filter,
nature: ProfileType.value,
...(filter as any),
},
},
}),
Expand Down
2 changes: 0 additions & 2 deletions packages/taboule/src/config/tiktok/tiktokPersonalSearch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,7 @@ export const tikTokPersonalSearch: GetTabouleQueryConf<
amount,
skip,
filter: {
query: undefined,
...filter,
nature: SearchType.value,
},
},
} as any),
Expand Down
4 changes: 3 additions & 1 deletion packages/taboule/src/config/youtube/youtubePersonalHomes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ export const youtubePersonalHomes: GetTabouleQueryConf<
amount: (amount + '') as any,
skip: (skip + '') as any,
format: 'json',
filter,
filter: {
...(filter as any),
},
},
} as any),
TE.map((content) => ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,8 @@ export const youtubePersonalSearches: GetTabouleQueryConf<
clients.YT.v2.Metadata.ListMetadata({
Query: {
...query,
format: 'json',
filter: {
query: undefined,
...filter,
nature: 'search',
...(filter as any),
},
},
}),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,8 @@ export const youtubePersonalVideos: GetTabouleQueryConf<
ValidateOutput: false,
Query: {
...query,
format: 'json',
filter: {
title: undefined,
authorName: undefined,
...filter,
nature: VideoNatureType.value,
...(filter as any),
},
},
} as any),
Expand Down

0 comments on commit 3add6fa

Please sign in to comment.