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

Method RemovePasskeyIDs

ent/mutation.go:15942–15950  ·  view source on GitHub ↗

RemovePasskeyIDs removes the "passkey" edge to the Passkey entity by IDs.

(ids ...int)

Source from the content-addressed store, hash-verified

15940
15941// RemovePasskeyIDs removes the "passkey" edge to the Passkey entity by IDs.
15942func (m *UserMutation) RemovePasskeyIDs(ids ...int) {
15943 if m.removedpasskey == nil {
15944 m.removedpasskey = make(map[int]struct{})
15945 }
15946 for i := range ids {
15947 delete(m.passkey, ids[i])
15948 m.removedpasskey[ids[i]] = struct{}{}
15949 }
15950}
15951
15952// RemovedPasskey returns the removed IDs of the "passkey" edge to the Passkey entity.
15953func (m *UserMutation) RemovedPasskeyIDs() (ids []int) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected