edited to remove serializers sanitize

This commit is contained in:
Martina 2021-09-14 16:01:49 -07:00
parent 8be6c257b4
commit fe8b2ce013

View File

@ -2,7 +2,7 @@ import * as Serializers from "~/node_common/serializers";
import { runQuery } from "~/node_common/data/utilities";
export default async ({ ownerId, url, sanitize = false }) => {
export default async ({ ownerId, url }) => {
return await runQuery({
label: "GET_FILE_BY_URL",
queryFn: async (DB) => {
@ -12,10 +12,6 @@ export default async ({ ownerId, url, sanitize = false }) => {
return null;
}
if (sanitize) {
query = Serializers.sanitizeFile(query);
}
return JSON.parse(JSON.stringify(query));
},
errorFn: async (e) => {