Rename UpdateUser functions.

This commit is contained in:
Yang Luo
2021-08-21 22:52:29 +08:00
parent 4ca307564c
commit 9c3117beb0
3 changed files with 16 additions and 7 deletions

View File

@@ -112,7 +112,7 @@ func syncUsers() {
updatedUser := createUserFromOriginalUser(oUser, affiliationMap)
updatedUser.Hash = oHash
updatedUser.PreHash = oHash
object.UpdateUserForOriginal(updatedUser)
object.UpdateUserForOriginalFields(updatedUser)
fmt.Printf("Update from oUser to user: %v\n", updatedUser)
}
} else {
@@ -133,7 +133,7 @@ func syncUsers() {
updatedUser := createUserFromOriginalUser(oUser, affiliationMap)
updatedUser.Hash = oHash
updatedUser.PreHash = oHash
object.UpdateUserForOriginal(updatedUser)
object.UpdateUserForOriginalFields(updatedUser)
fmt.Printf("Update from oUser to user (2nd condition): %v\n", updatedUser)
}
}