Skip to content

Commit

Permalink
docfix/Add todo regarding user agreement
Browse files Browse the repository at this point in the history
  • Loading branch information
constantine2nd committed Sep 9, 2024
1 parent 4203be7 commit 464e3c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions obp-api/src/main/scala/code/users/UserAgreement.scala
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@ import net.liftweb.mapper._
import net.liftweb.common.Box.tryo

object MappedUserAgreementProvider extends UserAgreementProvider {
// TODO Change the function name
override def createOrUpdateUserAgreement(userId: String, agreementType: String, agreementText: String): Box[UserAgreement] = {
UserAgreement.find(
By(UserAgreement.UserId, userId),
By(UserAgreement.AgreementType, agreementType)
) match {
// TODO We should be adding an additional record. Not changing existing one.
case Full(existingUser) =>
Full(
existingUser
Expand Down

0 comments on commit 464e3c7

Please sign in to comment.