Add checking and updating DeepL usage information

This commit is contained in:
Thelonius Kort
2023-01-10 20:06:54 +01:00
parent 33ed533a1a
commit e16710664d
4 changed files with 21 additions and 8 deletions

View File

@ -18,6 +18,6 @@ defmodule Outlook.Translators.DeeplAccount do
def changeset(deepl_account, attrs) do
deepl_account
|> cast(attrs, [:name, :description, :auth_key, :character_limit, :character_count, :our_character_count, :user_id])
|> validate_required([:name, :description, :auth_key, :character_limit, :user_id])
|> validate_required([:name, :description, :auth_key, :user_id])
end
end