mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2025-04-24 05:47:41 -04:00
Object.update already handles the cache eviction
This commit is contained in:
parent
7e04a4c385
commit
d61c99e905
1 changed files with 0 additions and 1 deletions
|
@ -383,7 +383,6 @@ defmodule Pleroma.Object do
|
|||
end
|
||||
|
||||
@doc "Updates data field of an object"
|
||||
@decorate cache_evict(cache: @nebulex, key: {Object, object.data["id"]})
|
||||
def update_data(%Object{data: data} = object, attrs \\ %{}) do
|
||||
object
|
||||
|> Object.update(%{data: Map.merge(data || %{}, attrs)})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue