fix(identity): remove default for syncSource

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

An Identity will be created as sync source,
when the associated account is created using an external provider.

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2021-11-14 20:56:17 +01:00
parent 178513a3a0
commit 3fe1bb0edf
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3
3 changed files with 7 additions and 3 deletions

View file

@ -95,7 +95,11 @@ describe('IdentityService', () => {
describe('loginWithLocalIdentity', () => {
it('works', async () => {
const identity = Identity.create(user, ProviderType.LOCAL) as Identity;
const identity = Identity.create(
user,
ProviderType.LOCAL,
false,
) as Identity;
identity.passwordHash = await hashPassword(password);
user.identities = Promise.resolve([identity]);
await expect(