Skip to content
Snippets Groups Projects
Verified Commit aae4e1ed authored by Jeffrey Phillips Freeman's avatar Jeffrey Phillips Freeman :boom:
Browse files

Fixed a problem with sending prematurely ending

parent 9275e06c
No related branches found
No related tags found
No related merge requests found
Pipeline #1936 passed with stage
in 1 minute and 53 seconds
......@@ -66,7 +66,7 @@ export default async function (req: VercelRequest, res: VercelResponse) {
const followersCollection = db.collection('followers');
const followersQuerySnapshot = await followersCollection.get();
let lastSuccessfulSentId = "";
let sendingIds = Set();
for (const followerDoc of followersQuerySnapshot.docs) {
const follower = followerDoc.data();
......@@ -96,7 +96,7 @@ export default async function (req: VercelRequest, res: VercelResponse) {
const response = await sendSignedRequest(actorInbox, <AP.Activity> item);
console.log(`Send result: ${actorInbox}`, response.status, response.statusText, await response.text());
sentIds.push(item.id)
sendingIds.push(item.id)
}
}
} catch (ex) {
......@@ -105,7 +105,7 @@ export default async function (req: VercelRequest, res: VercelResponse) {
}
configRef.set({
"sentIds": sentIds,
"sentIds": sentIds.concat(sendingIds),
"lastEpoch": new Date().getTime()
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment