Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit c76086f

Browse files
committed
fix(typo): damn it
1 parent 98223b2 commit c76086f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lib/helper/patchs/accounts_social_migrater.exs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@ defmodule Helper.Patch.SocialMigrater do
88
def insert_social_records(id, map) when map_size(map) == 0, do: IO.puts("pass robot user")
99

1010
def insert_social_records(id, attrs) do
11-
attrs = Map.merge(%{user_id: user.id}, attrs)
12-
Social |> ORM.upsert_by([user_id: id], attrs) |> IO.inspect(label: "result")
11+
attrs = Map.merge(%{user_id: id}, attrs)
12+
13+
Social
14+
|> ORM.upsert_by([user_id: id], attrs)
15+
|> IO.inspect(label: "result")
1316
end
1417
end
1518

0 commit comments

Comments
 (0)