1
0
Fork 0
mirror of synced 2024-10-01 01:28:51 +13:00

Always lowercase the app url on search

This commit is contained in:
Rory Powell 2022-01-21 17:36:53 +00:00
parent 81e8ceff1a
commit 0eecab7eed

View file

@ -43,7 +43,7 @@ async function getAppIdFromUrl(ctx) {
// search prod apps for a url that matches, exclude dev where id is always used // search prod apps for a url that matches, exclude dev where id is always used
const apps = await getAllApps(CouchDB, { dev: false }) const apps = await getAllApps(CouchDB, { dev: false })
const app = apps.filter(a => a.url === possibleAppUrl)[0] const app = apps.filter(a => a.url.toLowerCase() === possibleAppUrl)[0]
if (app && app.appId) { if (app && app.appId) {
return app.appId return app.appId