From 66fa946cb86348c0c3efc98e41809feac45aa755 Mon Sep 17 00:00:00 2001 From: Shane Kilkelly Date: Tue, 27 Nov 2018 16:07:26 +0000 Subject: [PATCH] set timestamp on new record too --- .../src/main/java/uk/ac/ic/wlgitbridge/bridge/Bridge.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/bridge/Bridge.java b/services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/bridge/Bridge.java index d4c680afff..cdbde1d1e4 100644 --- a/services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/bridge/Bridge.java +++ b/services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/bridge/Bridge.java @@ -384,6 +384,11 @@ public class Bridge { Log.info(">>>> migrated-from-id init from existing"); repo = repoStore.initRepoFromExisting(projectName, migratedFromID); dbStore.setLatestVersionForProject(migratedFromID, 0); + dbStore.setLastAccessedTime( + migratedFromID, + Timestamp.valueOf(LocalDateTime.now()) + + ); } } break;