mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-18 07:04:44 +00:00
removing useless transaction
This commit is contained in:
parent
6322c1e123
commit
58711a79d0
1 changed files with 5 additions and 7 deletions
|
@ -14,7 +14,6 @@ defmodule Pleroma.Repo.Migrations.MigrateOldBookmarks do
|
|||
select: %{id: u.id, old_bookmarks: u.old_bookmarks}
|
||||
)
|
||||
|
||||
Repo.transaction(fn ->
|
||||
Repo.stream(query)
|
||||
|> Enum.each(fn user ->
|
||||
Enum.each(user.old_bookmarks, fn id ->
|
||||
|
@ -22,7 +21,6 @@ defmodule Pleroma.Repo.Migrations.MigrateOldBookmarks do
|
|||
{:ok, _} = Bookmark.create(user.id, activity.id)
|
||||
end)
|
||||
end)
|
||||
end)
|
||||
end
|
||||
|
||||
def down do
|
||||
|
|
Loading…
Reference in a new issue