js-ceramic icon indicating copy to clipboard operation
js-ceramic copied to clipboard

`ModelInstanceDocument doc.replace`, there are some fields that are not updated in db table

Open lyd0 opened this issue 3 years ago • 2 comments

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. image

lyd0 avatar Oct 18 '22 10:10 lyd0

@willex hello~ Looking forward to your reply

lyd0 avatar Oct 18 '22 10:10 lyd0

@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

stbrody avatar Oct 19 '22 20:10 stbrody