Skip to content

Commit 4abe00e

Browse files
committed
chore: Add lastSync field to Identities schema and update PasswdService to include identity information in password change job execution
1 parent 90495a6 commit 4abe00e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/management/identities/_schemas/identities.schema.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ export class Identities extends AbstractSchema {
2424

2525
@Prop({ type: String })
2626
fingerprint: string;
27+
28+
@Prop({ type: Date })
29+
lastSync?: Date;
2730
}
2831

2932
export const IdentitiesSchema = SchemaFactory.createForClass(Identities);

src/management/passwd/passwd.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export class PasswdService extends AbstractService {
4646

4747
return await this.backends.executeJob(ActionType.IDENTITY_PASSWORD_CHANGE, identity._id, {
4848
...passwdDto,
49-
...pick(identity, ['inetOrgPerson']),
49+
...pick(identity.toJSON(), ['inetOrgPerson']),
5050
}, {
5151
async: false,
5252
});

0 commit comments

Comments
 (0)