Browse Source

Moved CreateNewShare function to ShareEntryTable

Toby Chui 3 năm trước cách đây
mục cha
commit
6bd120b245
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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
 	}
 }