actually delete the avatar row when deleting avatar file

This commit is contained in:
Lera Elvoé 2025-05-22 03:02:27 +03:00
parent 7f10dde1ea
commit 7d761bae2e
Signed by: yagich
SSH Key Fingerprint: SHA256:6xjGb6uA7lAVcULa7byPEN//rQ0wPoG+UzYVMfZnbvc

View File

@ -88,6 +88,7 @@ function util.destroy_avatar(avatar_id)
else
f:close()
os.remove(file_path)
avatar:delete()
end
end