Replace uuids with "nanoid"s
This commit is contained in:
@ -27,7 +27,7 @@ defmodule Outlook.Articles.InternalTree do
|
||||
defp from_json([%{status: _} = node | rest]) do
|
||||
[ %TranslationUnit{
|
||||
status: String.to_atom(node.status),
|
||||
uuid: node.uuid,
|
||||
nid: node.nid,
|
||||
content: node.content
|
||||
} | from_json(rest) ]
|
||||
end
|
||||
@ -37,7 +37,7 @@ defmodule Outlook.Articles.InternalTree do
|
||||
name: node.name,
|
||||
attributes: node.attributes,
|
||||
type: String.to_atom(node.type),
|
||||
uuid: node.uuid,
|
||||
nid: node.nid,
|
||||
content: from_json(node.content)
|
||||
} | from_json(rest) ]
|
||||
end
|
||||
@ -47,7 +47,7 @@ defmodule Outlook.Articles.InternalTree do
|
||||
name: node.name,
|
||||
attributes: node.attributes,
|
||||
type: String.to_atom(node.type),
|
||||
uuid: node.uuid,
|
||||
nid: node.nid,
|
||||
content: node.content
|
||||
} | from_json(rest) ]
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user