Skip to content

Instantly share code, notes, and snippets.

@ahl
Created April 12, 2019 05:02
Show Gist options
  • Save ahl/1b876e5c57ed813916399d78af8bf1bf to your computer and use it in GitHub Desktop.
Save ahl/1b876e5c57ed813916399d78af8bf1bf to your computer and use it in GitHub Desktop.
({ 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