Replace uuids with "nanoid"s
This commit is contained in:
@ -4,7 +4,6 @@ defmodule Outlook.InternalTree.RawInternalBasic do
|
||||
Html and before splitting textnodes into %TranslationUnit{}s.
|
||||
"""
|
||||
|
||||
alias Ecto.UUID
|
||||
alias Outlook.InternalTree.InternalNode
|
||||
alias Outlook.InternalTree.TranslationUnit
|
||||
alias Outlook.InternalTree.Html
|
||||
@ -59,7 +58,7 @@ defmodule Outlook.InternalTree.RawInternalBasic do
|
||||
%TranslationUnit{
|
||||
content: Html.to_html(sentence),
|
||||
status: :untranslated,
|
||||
uuid: UUID.generate()
|
||||
nid: Nanoid.generate()
|
||||
}
|
||||
end
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user