Fix some typespecs

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2022-05-02 12:08:00 +02:00
parent cd61a98f4d
commit a4cc566ee7
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773
2 changed files with 2 additions and 1 deletions

View file

@ -7,6 +7,7 @@ defmodule Mobilizon.Instances.Instance do
use Ecto.Schema
@type t :: %__MODULE__{
domain: String.t(),
event_count: non_neg_integer(),
person_count: non_neg_integer(),
group_count: non_neg_integer(),

View file

@ -5,7 +5,7 @@ defmodule Mobilizon.Web.Email.Mailer do
use Swoosh.Mailer, otp_app: :mobilizon
alias Mobilizon.Service.ErrorReporting.Sentry
@spec send_email(Swoosh.Email.t()) :: Swoosh.Email.t()
@spec send_email(Swoosh.Email.t()) :: {:ok, term} | {:error, term}
def send_email(email) do
Mobilizon.Web.Email.Mailer.deliver(email)
rescue