summaryrefslogtreecommitdiff
path: root/web/css
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-10 08:36:11 +0300
committerPaul Buetow <paul@buetow.org>2026-05-10 08:36:11 +0300
commitc49f7d292e17449b122fa54252661a9a298be9a8 (patch)
tree968d01f712dde429b42cb2b99810ce7766d06e8d /web/css
parent093ab19c3bb0a9fc22bda4262d9b844241c889e4 (diff)
internal/service: swap GC hard-delete ordering
Remove the media file from disk before deleting the DB row so that a failed os.Remove doesn't create an orphaned file. If the file is already missing (os.IsNotExist), proceed with the DB deletion. Other removal errors abort the iteration for that item. Also update the existing ordering test to assert removal happens before HardDeleteMedia, and add a test covering the file-remove-failure short-circuit.
Diffstat (limited to 'web/css')
0 files changed, 0 insertions, 0 deletions