Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

return utc epochTime in auth diff

Neeraj Gupta741aed7565ca
diff --git a/server/pkg/api/authenticator.go b/server/pkg/api/authenticator.go
index 6b071cf81d..645912cbab 100644
--- a/server/pkg/api/authenticator.go
+++ b/server/pkg/api/authenticator.go
@@ -3,6 +3,7 @@ package api
import (
"fmt"
"net/http"
+ "time"
"github.com/ente-io/museum/ente"
model "github.com/ente-io/museum/ente/authenticator"
@@ -105,7 +106,9 @@ func (h *AuthenticatorHandler) GetDiff(c *gin.Context) {
handler.Error(c, stacktrace.Propagate(err, "Failed to fetch authenticator entity diff"))
return
}
+
c.JSON(http.StatusOK, gin.H{
- "diff": entities,
+ "diff": entities,
+ "timestamp": time.Now().UnixMicro(),
})
}