Skip to content

Commit

Permalink
fix a build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
valerierose committed Oct 29, 2024
1 parent 8f749e6 commit f9adeb0
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions src/neynar-api/utils/v1-to-v2-converters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
Cast as ICastV1,
CastWithInteractions as ICastWithInteractionsV1,
} from "../v1";
import { User as IUserV2, ActiveStatus, Cast as ICastV2 } from "../v2";
import { User as IUserV2, Cast as ICastV2 } from "../v2";

export const convertToV2User = (v1User: IUserV1): IUserV2 => {
// @ts-ignore
Expand All @@ -27,18 +27,6 @@ export const convertToV2User = (v1User: IUserV1): IUserV2 => {
eth_addresses: [],
sol_addresses: [],
},
active_status:
v1User?.activeStatus === "active"
? ActiveStatus.Active
: ActiveStatus.Inactive,
...(v1User.viewerContext
? {
viewer_context: {
following: v1User.viewerContext.following,
followed_by: v1User.viewerContext.followedBy,
}
}
: {}),
};
return v2User;
};
Expand Down

0 comments on commit f9adeb0

Please sign in to comment.