From 1314ba219ef8a655872df743434bffe959d3028f Mon Sep 17 00:00:00 2001 From: Marin Jankovski Date: Fri, 11 Mar 2016 12:43:35 +0100 Subject: Updated and created were appended with _unix. Fresh databases have only the newly named fields. --- routers/repo/repo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'routers') diff --git a/routers/repo/repo.go b/routers/repo/repo.go index d4af0babc0..eb944acebc 100644 --- a/routers/repo/repo.go +++ b/routers/repo/repo.go @@ -34,7 +34,7 @@ func MustBeNotBare(ctx *middleware.Context) { } func checkContextUser(ctx *middleware.Context, uid int64) *models.User { - orgs, err := models.GetOwnedOrgsByUserIDDesc(ctx.User.Id, "updated") + orgs, err := models.GetOwnedOrgsByUserIDDesc(ctx.User.Id, "updated_unix") if err != nil { ctx.Handle(500, "GetOwnedOrgsByUserIDDesc", err) return nil -- cgit v1.2.3