fix(alias): remove default for primary

To make the create method more consistent with the
guidelines,
this commit removes the default value from the `primary` parameter.

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2021-11-14 21:22:22 +01:00
parent 9258863dbd
commit 01b53d3858
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3
3 changed files with 6 additions and 6 deletions

View file

@ -66,7 +66,7 @@ export class AliasService {
// the first alias is automatically made the primary alias
newAlias = Alias.create(alias, note, true);
} else {
newAlias = Alias.create(alias, note);
newAlias = Alias.create(alias, note, false);
}
note.aliases.push(newAlias as Alias);