admin: Display commit ID in admin interface

This commit is contained in:
nemunaire 2022-01-20 15:29:49 +01:00
commit 2645109839
9 changed files with 30 additions and 5 deletions

View file

@ -32,8 +32,14 @@ func getROSettings(_ httprouter.Params, body []byte) (interface{}, error) {
syncMtd = sync.GlobalImporter.Kind()
}
var syncId *string
if sync.GlobalImporter != nil {
syncId = sync.GlobalImporter.Id()
}
return map[string]interface{}{
"sync-type": reflect.TypeOf(sync.GlobalImporter).Name(),
"sync-id": syncId,
"sync": syncMtd,
}, nil
}