diff --git a/node_common/data/methods/get-file-by-url.js b/node_common/data/methods/get-file-by-url.js index 141e77d5..93c194c5 100644 --- a/node_common/data/methods/get-file-by-url.js +++ b/node_common/data/methods/get-file-by-url.js @@ -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) => {