remove done referral todos
This commit is contained in:
parent
c6581b2cb1
commit
98efe763a0
|
@ -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`
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue