From f9ab38a443be37fc49a4fb52dece8a1d44c44e13 Mon Sep 17 00:00:00 2001 From: lain Date: Thu, 22 Mar 2018 12:37:24 +0100 Subject: [PATCH] Fix test. --- lib/pleroma/web/oauth/authorization.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pleroma/web/oauth/authorization.ex b/lib/pleroma/web/oauth/authorization.ex index 5a68bd593..1ba5be602 100644 --- a/lib/pleroma/web/oauth/authorization.ex +++ b/lib/pleroma/web/oauth/authorization.ex @@ -40,8 +40,8 @@ defmodule Pleroma.Web.OAuth.Authorization do if NaiveDateTime.diff(NaiveDateTime.utc_now, valid_until) < 0 do Repo.update(use_changeset(auth, %{used: true})) else - {:error, "Token expired"} + {:error, "token expired"} end end - def use_token(%Authorization{used: true}), do: {:error, "Already used"} + def use_token(%Authorization{used: true}), do: {:error, "already used"} end -- 2.45.2