Updated docs

This commit is contained in:
Kieran Eglin 2024-02-24 12:30:47 -08:00
parent 3ae4ddf822
commit b5e3ada222
No known key found for this signature in database
GPG key ID: 193984967FCF432D

View file

@ -150,6 +150,11 @@ defmodule Pinchflat.Media do
@doc """
Deletes the media_item's associated files. Will leave the media_item in the database.
NOTE: this deletes the metadata files as well, but maybe it shouldn't? I'm wondering if
the metadata is more a concern of the DB record itself and should be lumped in with those
delete operations. But the metadata does come from the download operation of the file.
Food for thought but not a priority at the moment.
Returns {:ok, %MediaItem{}}
"""
def delete_attachments(media_item) do