fix: Bug when trailing user reset password on instance (no-changelog) (#7250)

Github issue / Community forum post (link here to close automatically):
This commit is contained in:
Ricardo Espinoza 2023-09-25 09:55:33 -04:00 committed by GitHub
parent 01e9340621
commit d47986aec3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -238,8 +238,9 @@ describe('POST /change-password', () => {
.post('/change-password')
.query(invalidPayload);
expect(response.statusCode).toBe(400);
const { password: storedPassword } = await Db.collections.User.findOneByOrFail({});
const { password: storedPassword } = await Db.collections.User.findOneByOrFail({
id: owner.id,
});
expect(owner.password).toBe(storedPassword);
}
});