Skip to content

Commit

Permalink
removed console.logs
Browse files Browse the repository at this point in the history
  • Loading branch information
baerlach-git committed Jul 14, 2023
1 parent 3e484b7 commit 9f62cf2
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,6 @@ export const AdvancedSearch = ({
variant='contained'
onClick={() => {
setFilter(filter);
console.log(advancedSearchProps);
}}
>
{t('search.appy-filter')}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ const getSearchResultHits = async (
) => {
const SEARCH_API_KEY = import.meta.env.VITE_MEILISEARCH_API_KEY;

console.log(SEARCH_API_KEY);
const client = new MeiliSearch({
host: 'localhost:7700',
apiKey: SEARCH_API_KEY,
Expand Down Expand Up @@ -65,7 +64,6 @@ const getSearchResultHits = async (
};
const query = searchTerms.length !== 0 ? searchTerms.join(' ') : '';
const searchResult = await index.search(query, settings);
console.log(searchResult);
return searchResult.hits;
};

Expand Down
42 changes: 21 additions & 21 deletions projects/bp-strapi/config/plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,32 +81,32 @@ module.exports = ({ env }) => ({
picture: {
transformEntry({ entry }) {
const transformedEntry = {
id: entry.id,
is_text: entry.is_text,
likes: entry.likes,
descriptions: entry.descriptions.map(description => description.text),
comments: entry.comments.map(comment => comment.text),
keyword_tags: entry.keyword_tags
id: entry?.id,
is_text: entry?.is_text,
likes: entry?.likes,
descriptions: entry?.descriptions.map(description => description.text),
comments: entry?.comments.map(comment => comment.text),
keyword_tags: entry?.keyword_tags
.map(tag => tag.name)
.concat(entry.verified_keyword_tags.map(tag => tag.name)),
person_tags: entry.person_tags
.concat(entry?.verified_keyword_tags.map(tag => tag.name)),
person_tags: entry?.person_tags
.map(tag => tag.name)
.concat(entry.verified_person_tags.map(tag => tag.name)),
location_tags: entry.location_tags
.concat(entry?.verified_person_tags.map(tag => tag.name)),
location_tags: entry?.location_tags
.map(tag => tag.name)
.concat(entry.verified_location_tags.map(tag => tag.name)),
face_tags: entry.face_tags.map(tag => tag.name),
collections: entry.collections.map(tag => tag.name),
archive_tag: entry.archive_tag,
.concat(entry?.verified_location_tags.map(tag => tag.name)),
face_tags: entry?.face_tags.map(tag => tag.name),
collections: entry?.collections.map(tag => tag.name),
archive_tag: entry?.archive_tag,
time_range_tag_start: entry?.time_range_tag
? dateToTimeStamp(entry.time_range_tag.start)
: entry.verified_time_range_tag
? dateToTimeStamp(entry.verified_time_range_tag.start)
? dateToTimeStamp(entry?.time_range_tag.start)
: entry?.verified_time_range_tag
? dateToTimeStamp(entry?.verified_time_range_tag.start)
: null,
time_range_tag_end: entry?.time_range_tag
? dateToTimeStamp(entry.time_range_tag.end)
: entry.verified_time_range_tag
? dateToTimeStamp(entry.verified_time_range_tag.end)
? dateToTimeStamp(entry?.time_range_tag.end)
: entry?.verified_time_range_tag
? dateToTimeStamp(entry?.verified_time_range_tag.end)
: null,
};

Expand Down Expand Up @@ -175,7 +175,7 @@ module.exports = ({ env }) => ({
pictureId: entry?.picture,
author: entry?.author,
text: entry?.text,
date: entry?.date ? dateToTimeStamp(entry.date) : null,
date: entry?.date ? dateToTimeStamp(entry?.date) : null,
pinned: entry?.pinned,
childComments: entry?.childComments,
parentComments: entry?.parentComments,
Expand Down

0 comments on commit 9f62cf2

Please sign in to comment.