Skip to content

Commit

Permalink
Adds updated_at field to CaseCostRead
Browse files Browse the repository at this point in the history
  • Loading branch information
metroid-samus committed Dec 18, 2024
1 parent e158aa1 commit 9e77768
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/dispatch/case_cost/models.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from datetime import datetime

from sqlalchemy import Column, ForeignKey, Integer, Numeric
from sqlalchemy.ext.associationproxy import association_proxy
from sqlalchemy.orm import relationship
Expand Down Expand Up @@ -40,6 +42,7 @@ class CaseCostUpdate(CaseCostBase):
class CaseCostRead(CaseCostBase):
id: PrimaryKey
case_cost_type: CaseCostTypeRead
updated_at: Optional[datetime] = None


class CaseCostPagination(Pagination):
Expand Down
2 changes: 1 addition & 1 deletion src/dispatch/static/dispatch/src/case/CostsTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default {
},
setup() {
return { formatRelativeDate, toUSD }
return { toUSD, formatRelativeDate }
},
computed: {
Expand Down

0 comments on commit 9e77768

Please sign in to comment.