2021-12-30 16:11:53 +01:00
|
|
|
defmodule Bump.Senders do
|
|
|
|
alias Bump.Database
|
|
|
|
|
|
|
|
def firebase(sender, firebase) do
|
|
|
|
Database.addSender(sender, %{"firebase" => firebase})
|
|
|
|
end
|
|
|
|
|
2022-01-03 13:07:33 +01:00
|
|
|
def delete(sender) do
|
|
|
|
Database.deleteSender(sender)
|
|
|
|
end
|
|
|
|
|
2021-12-30 16:11:53 +01:00
|
|
|
def peek(sender) do
|
|
|
|
Database.peek(sender)
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|