MCPcopy Create free account
hub / github.com/cloudreve/cloudreve / RemoveShares

Method RemoveShares

ent/user_update.go:413–419  ·  view source on GitHub ↗

RemoveShares removes "shares" edges to Share entities.

(s ...*Share)

Source from the content-addressed store, hash-verified

411
412// RemoveShares removes "shares" edges to Share entities.
413func (uu *UserUpdate) RemoveShares(s ...*Share) *UserUpdate {
414 ids := make([]int, len(s))
415 for i := range s {
416 ids[i] = s[i].ID
417 }
418 return uu.RemoveShareIDs(ids...)
419}
420
421// ClearPasskey clears all "passkey" edges to the Passkey entity.
422func (uu *UserUpdate) ClearPasskey() *UserUpdate {

Callers

nothing calls this directly

Calls 1

RemoveShareIDsMethod · 0.95

Tested by

no test coverage detected