Skip to content

Commit

Permalink
correct variable assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
sqlarticles authored Sep 8, 2023
1 parent 3a32d5e commit dbe2821
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/New-DbaDbUser.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ function New-DbaDbUser {

#This block is required so that correct error message can be returned to the user when incorrect database name is given or the database doesn't exists in the server.
if (-not $Database) {
$Database = $databases
$Database = $databases.Name
}

foreach ($db in $Database) {
Expand Down

0 comments on commit dbe2821

Please sign in to comment.