A couple of Bluesky feeds focused around PDSes

fixes

Changed files
+8 -2
common
+1 -1
common/db.ts
··· 16 16 CREATE INDEX posts_author_idx ON posts (uri, author, indexed_at DESC);`, 17 17 `CREATE TABLE state ( 18 18 id smallint PRIMARY KEY, 19 - cursor integer, 19 + cursor VARCHAR, 20 20 CHECK(id = 1) 21 21 ); 22 22 INSERT INTO state (id) VALUES (1);`,
+7 -1
ingest.ts
··· 117 117 } 118 118 119 119 const atUri: ResourceUri = `at://${e.did}/app.bsky.feed.post/${e.commit.rkey}`; 120 - const pds = await getPDS(e.did as DID); 120 + let pds; 121 + try { 122 + pds = await getPDS(e.did as DID); 123 + } catch (e) { 124 + console.error(e); 125 + return; 126 + } 121 127 122 128 if (!pds) { 123 129 console.error(`PDS not found for ${e.did}`);