Skip to content

Commit

Permalink
fix(address-service): DOMA-8640 change plugins order (#4497)
Browse files Browse the repository at this point in the history
Also, some missed lower-casing was added
  • Loading branch information
AleX83Xpert authored Mar 20, 2024
1 parent 718689f commit 5719ce7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/address-service/bin/update-address.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ async function main (args) {

console.log(`Address model updated. New address: ${updatedAddressItem.address}`)

const addressSourceItem = await AddressSource.getOne(context, { source: searchString })
const addressSourceItem = await AddressSource.getOne(context, { source: searchString.toLowerCase() })

if (addressSourceItem) {
console.log(`Found address source with id=${addressSourceItem.id}`)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ async function createOrUpdateAddressWithSource (context, addressServerUtils, add
// Address source
//
const compoundedAddressSource = mergeAddressAndHelpers(addressSource, helpers)
const addressSourceItem = await addressSourceServerUtils.getOne(context, { source: compoundedAddressSource })
const addressSourceItem = await addressSourceServerUtils.getOne(context, { source: compoundedAddressSource.toLowerCase() })

if (addressSourceItem) {
await addressSourceServerUtils.update(context, addressSourceItem.id, {
Expand Down
2 changes: 1 addition & 1 deletion apps/address-service/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ module.exports = {
new SuggestionKeystoneApp(),
new SearchKeystoneApp([
new SearchByAddressKey(),
new SearchByInjectionId(),
new SearchBySource(),
new SearchByInjectionId(),
new SearchByFiasId(),
new SearchByGooglePlaceId(),
new SearchByProvider(),
Expand Down

0 comments on commit 5719ce7

Please sign in to comment.