diff --git a/lib/repo.vala b/lib/repo.vala index 659d8a7..318ee4e 100644 --- a/lib/repo.vala +++ b/lib/repo.vala @@ -9,6 +9,10 @@ public class Repo : Object { // vala to automatically generate a property. Note, // if a Vala property is start with _, it is not // translated into a GObject property. + + // Due to performance reasons, 'desc', 'magic', 'enc_version', 'root', 'repaired', 'random_key' + // are no longer returned in listing repos API. + public char _id[37]; public string id { get { return (string)_id; } diff --git a/server/repo-mgr.c b/server/repo-mgr.c index b5d214b..0359b13 100644 --- a/server/repo-mgr.c +++ b/server/repo-mgr.c @@ -3022,8 +3022,8 @@ seaf_fill_repo_obj_from_commit (GList **repos) NULL); g_object_set (repo, "repo_name", commit->repo_name, "repo_desc", commit->repo_desc, - "last_modified", commit->ctime, "repaired", commit->repaired, - "last_modifier", commit->creator_name, NULL); + "last_modified", commit->ctime, "last_modify", commit->ctime, + "repaired", commit->repaired, "last_modifier", commit->creator_name, NULL); if (commit->encrypted && commit->enc_version == 2) g_object_set (repo, "random_key", commit->random_key, NULL); diff --git a/server/share-mgr.c b/server/share-mgr.c index a0a76ae..5beb13e 100644 --- a/server/share-mgr.c +++ b/server/share-mgr.c @@ -188,6 +188,7 @@ collect_repos (SeafDBRow *row, void *data) g_object_set (repo, "name", repo_name, "repo_name", repo_name, "last_modify", update_time, + "last_modified", update_time, "version", version, "encrypted", is_encrypted, "last_modifier", last_modifier, NULL); @@ -232,6 +233,7 @@ seaf_fill_repo_commit_if_not_in_db (GList **repos) g_object_set (repo, "name", commit->repo_name, "repo_name", commit->repo_name, "last_modify", commit->ctime, + "last_modified", commit->ctime, "version", commit->version, "encrypted", commit->encrypted, "last_modifier", commit->creator_name,