keeleinstituut / tv-tolkevarav

Tõlkevärav (Translation Hub)
1 stars 0 forks source link

Endpoint modification for providing updated_at and created_at values (BE) #656

Open MariusJulius opened 7 months ago

MariusJulius commented 7 months ago

FE ticket: #649

Needs both BE and FE changes. We currently don't get the updated_at and created_at values from BE, so they are just taken from the first price element we get when fetching the list and seems to fall back on current date. This means that currently we are not showing the correct date there. Mentioned to @thenouan as well, but would be good to have tasks for this.

Endpoint: GET translation-order/api/prices?vendor_id=

created_at - Timestamp when the first price object was added to this vendor updated_at - Timestamp of last edit to any price object that belongs to this vendor