Created
April 12, 2019 05:02
-
-
Save ahl/1b876e5c57ed813916399d78af8bf1bf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
({ http_event }) => { | |
var moment = require("moment-timezone-with-data.js"); | |
return { | |
status_code: 200, | |
headers: { "Content-Type": "application/json" }, | |
body: { | |
"text": api.run("this.eng_active", {}) | |
.map((x) => moment(x.updateTime).format("YYYY MMMM Do ") | |
+ x.givenName + " " + x.familyName) | |
.join("\n") | |
} | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment