INNER CODE UNIT · JavaScript

getExecutionLogList

mlevit/aws-auto-cleanup · web/src/js/index.js:363

function getExecutionLogList() {
  app.showExecutionLogListLoadingGif = true;
  fetch(API_EXECLOG, {
    headers: {
      "x-api-key": API_KEY,
    },
  })
    .then((response) => response.json())
    .then((data) => {
      app.executionLogList = data["response"]["logs"].map((row) => {
        let logDate = new Date(row["date"] + " UTC");
        let localDate = logDate.toString().split(/ GMT/)[0];

        row["key_escape"] = encodeURIComponent(row["key"]);
        row["local_date"] = localDate;
        return row;
      });
      setTimeout(function () {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…