Skip to content

Commit

Permalink
cleanup SassyHash api
Browse files Browse the repository at this point in the history
  • Loading branch information
artlu99 committed Nov 2, 2024
1 parent 665c2c8 commit 94d9957
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 21 deletions.
1 change: 0 additions & 1 deletion functions/getSassyHashes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ const fetchSassyHashExpensiveApi = async (viewerFid: number, castHash: string, e
`,
{ castHash, viewerFid },
);
console.log('graphQLClient:', res);
return { data: res.data.getTextByCastHash };
} catch (e) {
console.error(e);
Expand Down
2 changes: 1 addition & 1 deletion src/api/channelFeed.api.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { BotOrNotResult, getBotOrNot } from '@app/api/botOrNot.api';
import { getCronFeed } from '@app/api/cronFeed.api';
import { CastObject } from '@app/api/feed-types';
import { getSassyHash, isSassy, SassyHash } from '@app/api/sassyHash.api';
import { ChannelObject } from '@app/api/warpcast-types';
import { IHashTag } from '@app/components/common/BaseHashTag/BaseHashTag';
import { CHANNEL_FEED_PAGESIZE } from '@app/constants/pinataPagination';
import { sift, unique } from 'radash';
import { getSassyHash, isSassy, SassyHash } from './sassyHash.api';

export interface EnhancedCastObject extends CastObject {
amFollowing: boolean;
Expand Down
2 changes: 1 addition & 1 deletion src/api/forYouFeed.api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import { PagedCronFeed } from '@app/api/channelFeed.api';
import { FeedObject } from '@app/api/feed-types';
import { getTagsForCast } from '@app/api/followingFeed.api';
import { httpApi } from '@app/api/http.api';
import { getSassyHash, isSassy } from '@app/api/sassyHash.api';
import { ChannelObject } from '@app/api/warpcast-types';
import { FORYOU_FEED_PAGESIZE } from '@app/constants/neynarPagination';
import { sift, unique } from 'radash';
import './mocks/mockornot';
import { getSassyHash, isSassy } from './sassyHash.api';

interface ForYouFeedRequest {
fid: number;
Expand Down
34 changes: 17 additions & 17 deletions src/api/mocks/mockornot.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
// comment out for prod
// import './allChannels.api.mock';
// import './botOrNot.api.mock';
// import './castByHash.api.mock';
// import './channelById.api.mock';
// import './cronFeed.api.mock';
// import './decent-bookmarks.api.mock';
// import './fcan.api.mock';
// import './followingByFid.api.mock';
// import './followingFeed.api.mock';
// import './forYouFeed.api.mock';
// import './hubReactionsByFid.api.mock';
// import './metadata.api.mock';
// import './neynarReactionsByFid.api.mock';
// import './reactionOnHash.api.mock';
// import './reactionsByHash.api.mock';
// import './sassyHash.api.mock';
// import './userFollowingChannels.api.mock';
import './allChannels.api.mock';
import './botOrNot.api.mock';
import './castByHash.api.mock';
import './channelById.api.mock';
import './cronFeed.api.mock';
import './decent-bookmarks.api.mock';
import './fcan.api.mock';
import './followingByFid.api.mock';
import './followingFeed.api.mock';
import './forYouFeed.api.mock';
import './hubReactionsByFid.api.mock';
import './metadata.api.mock';
import './neynarReactionsByFid.api.mock';
import './reactionOnHash.api.mock';
import './reactionsByHash.api.mock';
import './sassyHash.api.mock';
import './userFollowingChannels.api.mock';
2 changes: 1 addition & 1 deletion src/api/mocks/sassyHash.api.mock.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { httpApiMock } from '@app/api/mocks/http.api.mock';
import { SassyHashResponse } from '../sassyHash.api';
import { SassyHashResponse } from '@app/api/sassyHash.api';

const res: SassyHashResponse = {
// data: {
Expand Down

0 comments on commit 94d9957

Please sign in to comment.