remove done referral todos

This commit is contained in:
keyan 2024-07-16 13:44:58 -05:00
parent c6581b2cb1
commit 98efe763a0
3 changed files with 0 additions and 5 deletions

View File

@ -194,8 +194,6 @@ export async function onPaid ({ invoice, id }, context) {
INSERT INTO pgboss.job (name, data, retrylimit, retrybackoff, startafter)
VALUES ('imgproxy', jsonb_build_object('id', ${item.id}::INTEGER), 21, true, now() + interval '5 seconds')`
// TODO: referals for boost
if (item.parentId) {
// denormalize ncomments, lastCommentAt, and "weightedComments" for ancestors, and insert into reply table
await tx.$executeRaw`

View File

@ -131,8 +131,6 @@ export async function perform (args, context) {
await performBotBehavior(args, context)
// TODO: referals for boost
// compare timestamps to only notify if mention or item referral was just created to avoid duplicates on edits
for (const { userId, createdAt } of item.mentions) {
if (item.updatedAt.getTime() !== createdAt.getTime()) continue

View File

@ -143,7 +143,6 @@ export async function onPaid ({ invoice, actIds }, { models, tx }) {
FROM zapped
WHERE "Item".path @> zapped.path AND "Item".id <> zapped.id`
// TODO: referrals
notifyZapped({ models, item }).catch(console.error)
}