Updated packages. Allow url in query strings.

This commit is contained in:
Mike Cao committed 2020-09-03 08:43:17 -07:00
1 parent 353907e71d
commit a3e920d944
4 files changed
+305 -510

No files matched your search

-1
View File
@@ -34,7 +34,6 @@ export default prisma;
export async function runQuery(query) {
return query.catch(e => {
console.error(e);
throw e;
});
}
+5 -1
View File
@@ -13,7 +13,11 @@ export const urlFilter = (data, { raw }) => {
const cleanUrl = url => {
try {
const { pathname, searchParams } = new URL(url);
const { pathname, search, searchParams } = new URL(url);
if (search.startsWith('?/')) {
return `${pathname}${search}`;
}
const path = removeTrailingSlash(pathname);
const ref = searchParams.get('ref');