Skip to content

Commit

Permalink
hide bots
Browse files Browse the repository at this point in the history
  • Loading branch information
mantikoros committed Dec 13, 2024
1 parent 256fe15 commit 7c4e7c3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions backend/api/src/get-site-activity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ import { convertContractComment } from 'common/supabase/comments'
export const getSiteActivity: APIHandler<'get-site-activity'> = async (
props
) => {
const {
limit,
blockedUserIds = [],
blockedGroupSlugs = [],
blockedContractIds = [],
} = props
const pg = createSupabaseDirectClient()
const { limit, blockedGroupSlugs = [], blockedContractIds = [] } = props
log('getSiteActivity called', { limit })

const blockedUserIds = [
'FDWTsTHFytZz96xmcKzf7S5asYL2', // yunabot (does a lot of manual trades)
...(props.blockedUserIds ?? []),
]
const pg = createSupabaseDirectClient()

const [recentBets, limitOrders, recentComments, newContracts] =
await Promise.all([
pg.manyOrNone(
Expand Down

0 comments on commit 7c4e7c3

Please sign in to comment.