MCPcopy Create free account
hub / github.com/devaccuracy/ledgerforge / UpdateIdentity

Method UpdateIdentity

identity.go:128–130  ·  view source on GitHub ↗

UpdateIdentity updates an existing identity in the database. Parameters: - identity *model.Identity: A pointer to the Identity model to be updated. Returns: - error: An error if the identity could not be updated.

(identity *model.Identity)

Source from the content-addressed store, hash-verified

126// Returns:
127// - error: An error if the identity could not be updated.
128func (l *LedgerForge) UpdateIdentity(identity *model.Identity) error {
129 return l.datasource.UpdateIdentity(identity)
130}
131
132// DeleteIdentity deletes an identity by its ID.
133//

Callers 2

TokenizeIdentityFieldMethod · 0.95
TestUpdateIdentityFunction · 0.95

Calls 1

UpdateIdentityMethod · 0.65

Tested by 1

TestUpdateIdentityFunction · 0.76