Commits

Anonymous committed ae5fbdb

Fixed hard error in initiative API

Comments (0)

Files changed (1)

app/main/api/initiative.lua

     name = "created",
     field = "initiative.created",
     func = function(record)
-      return format.timestamp(record.created)
+      return format_timestamp(record.created)
     end
   },
   {
     name = "revoked",
     field = "initiative.revoked",
     func = function(record)
-      return format.timestamp(record.revoked)
+      return format_timestamp(record.revoked)
     end
   },
   { name = "suggested_initiative_id",   field = "initiative.suggested_initiative_id" },
   {
     name = "current_draft_created",
     func = function(record)
-      return format.timestamp(record.current_draft.created)
+      return format_timestamp(record.current_draft.created)
     end
   },
   {