mirror of
https://github.com/wavetermdev/backup.git
synced 2026-08-05 13:57:07 -07:00
add groupid, since it is now a screenid not a sessionid
This commit is contained in:
@@ -87,7 +87,12 @@ func SetEnableDebugLog(enable bool) {
|
||||
DebugLogEnabled = enable
|
||||
}
|
||||
|
||||
// deprecated (use GetGroupId instead)
|
||||
func (ckey CommandKey) GetSessionId() string {
|
||||
return ckey.GetGroupId()
|
||||
}
|
||||
|
||||
func (ckey CommandKey) GetGroupId() string {
|
||||
slashIdx := strings.Index(string(ckey), "/")
|
||||
if slashIdx == -1 {
|
||||
return ""
|
||||
|
||||
Reference in New Issue
Block a user