Rust AppView - highly experimental!
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(consumer): would help to insert into the right columns

+2 -2
+1 -1
consumer/src/db/copy.rs
··· 382 382 .await?; 383 383 384 384 let writer = conn 385 - .copy_in("COPY records_tmp (at_uri, cid, did) FROM STDIN (FORMAT binary)") 385 + .copy_in("COPY records_tmp (at_uri, did, cid) FROM STDIN (FORMAT binary)") 386 386 .await?; 387 387 let writer = BinaryCopyInWriter::new(writer, &[Type::TEXT, Type::TEXT, Type::TEXT]); 388 388
+1 -1
consumer/src/db/record.rs
··· 13 13 ) -> PgExecResult { 14 14 conn.execute( 15 15 "INSERT INTO records (at_uri, did, cid) VALUES ($1, $2, $3) ON CONFLICT (at_uri) DO UPDATE SET cid=EXCLUDED.cid", 16 - &[&repo, &at_uri, &cid.to_string()], 16 + &[&at_uri, &repo, &cid.to_string()], 17 17 ).await 18 18 } 19 19