Merge pull request 'hide old verified boat damages' (#371) from hide-old-verified-boatdamages into staging
Reviewed-on: #371
This commit is contained in:
commit
8db9e020c8
@ -73,6 +73,10 @@ impl BoatDamage {
|
|||||||
"
|
"
|
||||||
SELECT id, boat_id, desc, user_id_created, created_at, user_id_fixed, fixed_at, user_id_verified, verified_at, lock_boat
|
SELECT id, boat_id, desc, user_id_created, created_at, user_id_fixed, fixed_at, user_id_verified, verified_at, lock_boat
|
||||||
FROM boat_damage
|
FROM boat_damage
|
||||||
|
WHERE (
|
||||||
|
verified_at IS NULL
|
||||||
|
OR verified_at >= datetime('now', '-30 days')
|
||||||
|
)
|
||||||
ORDER BY created_at DESC
|
ORDER BY created_at DESC
|
||||||
"
|
"
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user