Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
fix (webui): exclude soft-deleted ships from dock
Browse files Browse the repository at this point in the history
  • Loading branch information
ggmolly committed Jun 6, 2024
1 parent fb1ddeb commit c05fc03
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions web/routes/dock.go
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ func RenderDockContent(c *fiber.Ctx) error {
Joins("inner join ships on ships.template_id = owned_ships.ship_id").
Select("owned_ships.*, ships.name, ships.rarity_id").
Where("owner_id = ?", commanderId).
Where("owned_ships.deleted_at is null").
Order("owned_ships.is_secretary desc, ships.rarity_id desc").
Scan(&ships).Error

Expand Down

0 comments on commit c05fc03

Please sign in to comment.