feat(paste): add user id if user is logged in

Signed-off-by: SphericalKat <amolele@gmail.com>
This commit is contained in:
sphericalkat committed 2021-08-15 03:20:03 +05:30
1 parent c99df5e8bd
commit f5525d2d20
3 files changed
+8 -3

No files matched your search

+1 -1
View File
@@ -13,7 +13,7 @@ defmodule Ketbin.Pastes.Paste do
@doc false
def changeset(paste, attrs) do
paste
|> cast(attrs, [:is_url, :content, :id])
|> cast(attrs, [:is_url, :content, :id, :belongs_to])
|> validate_required([:is_url, :content])
end
end