Skip to content

Commit

Permalink
add to alias is a set, and not duplicates fixed ussing mongo addtoset
Browse files Browse the repository at this point in the history
  • Loading branch information
mineme0110 committed Jun 26, 2023
1 parent 119b637 commit 5ab9d18
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class UserAccountRepo(reactiveMongoApi: ReactiveMongoApi)(using ec: ExecutionCon
def selector: BSONDocument = BSONDocument("did" -> owner)

def update: BSONDocument = BSONDocument(
"$push" -> BSONDocument(
"$addToSet" -> BSONDocument(
"alias" -> newAlias
)
)
Expand Down

0 comments on commit 5ab9d18

Please sign in to comment.