0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00

Fixed a bug with setting geolocation

no-issue

We were passing a string rather than an object to find the member to set
the geolocation on, this was causing us to always find the same member
each time, and so newer members would never have their geolocation set.
This commit is contained in:
Fabien O'Carroll 2020-09-28 13:08:03 +01:00
parent d2bb50a436
commit feaf73f7d2

View file

@ -169,7 +169,7 @@ module.exports = function MembersApi({
});
}
const member = await users.get(email, {
const member = await users.get({email}, {
withRelated: ['labels']
});