mirror of
https://github.com/lejianwen/rustdesk-api.git
synced 2026-02-16 19:20:56 +00:00
fix!: Update peer to use ID instead of UUID
This commit is contained in:
@@ -49,7 +49,7 @@ func (i *Index) Heartbeat(c *gin.Context) {
|
||||
c.JSON(http.StatusOK, gin.H{})
|
||||
return
|
||||
}
|
||||
peer := service.AllService.PeerService.FindByUuid(info.Uuid)
|
||||
peer := service.AllService.PeerService.FindById(info.Id)
|
||||
if peer == nil || peer.RowId == 0 {
|
||||
c.JSON(http.StatusOK, gin.H{})
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user