admin: Display commit ID in admin interface
This commit is contained in:
parent
92bb409764
commit
2645109839
9 changed files with 30 additions and 5 deletions
|
@ -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
|
||||
}
|
||||
|
|
Reference in a new issue