Skip to content

Commit

Permalink
add lastChecked column to installations
Browse files Browse the repository at this point in the history
  • Loading branch information
dabutvin committed Oct 23, 2018
1 parent dc446d0 commit c5a3421
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Common/TableModels/Installation.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Microsoft.WindowsAzure.Storage.Table;
using System;
using Microsoft.WindowsAzure.Storage.Table;

namespace Common.TableModels
{
Expand All @@ -24,5 +25,7 @@ public Installation(int installationId, string repoName)
public string CloneUrl { get; set; }

public string Owner { get; set; }

public DateTime? LastChecked { get; set; }
}
}
6 changes: 6 additions & 0 deletions RouterFunction/RouterFunction.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using System;
using Common.Messages;
using Common.TableModels;
using Microsoft.Azure.WebJobs;
Expand All @@ -21,8 +22,13 @@ public static void Run(
{
CloneUrl = routerMessage.CloneUrl,
Owner = routerMessage.Owner,
LastChecked = DateTime.UtcNow
});
}
else
{
installation.LastChecked = DateTime.UtcNow;
}

/*
* TODO: add logic for routing
Expand Down

0 comments on commit c5a3421

Please sign in to comment.