Skip to content

Commit

Permalink
Ok last attempt for this one
Browse files Browse the repository at this point in the history
  • Loading branch information
aewering committed Dec 17, 2023
1 parent d146bce commit 05afb58
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "protoc-gen-elm",
"version": "3.3.2",
"version": "3.3.3",
"description": "Elm protoc plugin",
"keywords": [
"elm",
Expand Down
2 changes: 1 addition & 1 deletion src/Generator/Message.elm
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ toAST options moduleName msg =
else
C.varPattern "value"
]
(if moduleName == [ "Google", "Protobuf" ] && msg.dataType == "Timestamp" then
(if moduleName == [ "Proto", "Google", "Protobuf" ] && msg.dataType == "Timestamp" then
-- Use custom JSON encoder for timestamp
C.apply [ C.fqFun [ "Protobuf", "Utils", "Timestamp" ] "timestampJsonEncoder", C.val "value" ]

Expand Down

0 comments on commit 05afb58

Please sign in to comment.