Explorar el Código

Moved CreateNewShare function to ShareEntryTable

Toby Chui hace 3 años
padre
commit
6bd120b245
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      mod/share/shareEntry/shareEntry.go

+ 1 - 1
mod/share/shareEntry/shareEntry.go

@@ -99,7 +99,7 @@ func (s *ShareEntryTable) CreateNewShare(rpath string, username string, usergrou
 		//Write object to database
 		s.Database.Write("share", shareUUID, shareOption)
 
-		return s, nil
+		return &shareOption, nil
 	}
 }