bluesky-social / feed-generator

ATProto Feed Generator Starter Kit
MIT License
919 stars 329 forks source link

Fix initial cursor #54

Open AvivRubys opened 1 year ago

AvivRubys commented 1 year ago

Problem

When running for the first time, we only update the cursor but don't create the initial row, so it doesn't update anything.

Solution

Changed the update to an upsert. Ran locally and verified sub_state was empty before, and after the change has a single row.