mirror of
https://github.com/filecoin-project/slate.git
synced 2024-12-26 18:44:56 +03:00
edited to remove serializers sanitize
This commit is contained in:
parent
8be6c257b4
commit
fe8b2ce013
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user