js-ceramic
js-ceramic copied to clipboard
`ModelInstanceDocument doc.replace`, there are some fields that are not updated in db table
Describe the bug
const doc = await ModelInstanceDocument.create(ceramic, CONTENT0, midMetadata)
await doc.replace(CONTENT1)
but in postgress ,the db table only updates 2 fields(last_anchored_at&updated_at) when doc updated, CONTENT1 data is not updated to table,maybe other fields should be updated as well
https://github.com/ceramicnetwork/js-ceramic/blame/33e3c0969c0161d5dc17b55501775385241066be/packages/core/src/indexing/postgres/postgres-index-api.ts#L57
Screenshots
If applicable, add screenshots to help explain your problem.

@willex hello~ Looking forward to your reply
@lyd0 this does indeed look like a bug. Thanks for bringing it to our attention! We'll triage it at our next triage meeting in a week or so