a tool for shared writing and social publishing
0
fork

Configure Feed

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

make upsert update entity

In order to handle reparenting blocks while preserving factID. I'm not
sure why we do this tbh, but it can't hurt!

+4 -1
+4 -1
src/replicache/cachedServerMutationContext.ts
··· 199 199 }) 200 200 .onConflictDoUpdate({ 201 201 target: facts.id, 202 - set: { data: driz.sql`excluded.data` }, 202 + set: { 203 + data: driz.sql`excluded.data`, 204 + entity: driz.sql`excluded.entity`, 205 + }, 203 206 }) 204 207 .catch((e) => 205 208 console.log(`error on inserting fact: `, JSON.stringify(e)),