Skip to content

Commit 020ad85

Browse files
committed
Go back to Algolia search
1 parent 925760a commit 020ad85

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/skin-museum-client/src/algolia.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export async function graphqlSearch(query, options = {}) {
2626
return { hits };
2727
}
2828

29-
export function search(query, options = {}) {
29+
export function algoliaSearch(query, options = {}) {
3030
return new Promise((resolve, reject) => {
3131
index.search(
3232
{

packages/skin-museum-client/src/redux/epics.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import {
1919
takeWhile,
2020
mergeAll,
2121
} from "rxjs/operators";
22-
import { graphqlSearch } from "../algolia";
22+
import { algoliaSearch } from "../algolia";
2323
import queryParser from "../queryParser";
2424
import { CHUNK_SIZE } from "../constants";
2525
import * as UploadUtils from "../upload/uploadUtils";
@@ -148,7 +148,7 @@ const searchEpic = (actions) =>
148148

149149
const [newQuery, options] = queryParser(query);
150150

151-
return from(graphqlSearch(newQuery, options)).pipe(
151+
return from(algoliaSearch(newQuery, options)).pipe(
152152
map((content) => {
153153
const matchingSkins = content.hits.map((hit) => ({
154154
hash: hit.objectID,

0 commit comments

Comments
 (0)