This commit is contained in:
dholms 2023-05-11 12:14:50 -05:00
parent bca915f6ae
commit eeeb0325fc

View File

@ -8,11 +8,6 @@ export class FirehoseSubscription extends FirehoseSubscriptionBase {
async handleEvent(evt: RepoEvent) {
if (!isCommit(evt)) return
const ops = await getOpsByType(evt)
if (ops.posts.creates.length > 0) {
for (const op of ops.posts.creates) {
console.log(op.record.text)
}
}
const postsToDelete = ops.posts.deletes.map((del) => del.uri)
const postsToCreate = ops.posts.creates
.filter((create) => {