make ID only 12 chars long.

This commit is contained in:
Miroslav Šedivý
2023-10-01 00:29:46 +02:00
parent 06b596959a
commit 9e60fdde70
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ func (manager *RoomManagerCtx) containerToEntry(container dockerTypes.Container)
}
entry := &types.RoomEntry{
ID: container.ID,
ID: container.ID[:12],
URL: labels.URL,
Name: labels.Name,
NekoImage: labels.NekoImage,
+1 -1
View File
@@ -483,7 +483,7 @@ func (manager *RoomManagerCtx) Create(settings types.RoomSettings) (string, erro
return "", err
}
return container.ID, nil
return container.ID[:12], nil
}
func (manager *RoomManagerCtx) GetEntry(id string) (*types.RoomEntry, error) {