Skip to content

Commit dfff6b5

Browse files
committed
chore: Update IdentitiesService to set lastSync field on fingerprint match
1 parent 2a391da commit dfff6b5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/management/identities/identities.service.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ export class IdentitiesService extends AbstractServiceSchema {
207207
.exec();
208208
if (identity) {
209209
this.logger.debug(`Fingerprint matched for <${identity._id}> (${fingerprint}).`);
210+
this._model.findByIdAndUpdate(identity._id, { lastSync: new Date() }).exec();
210211
throw new HttpException('Fingerprint matched.', HttpStatus.NOT_MODIFIED);
211212
}
212213
}

0 commit comments

Comments
 (0)