fix: direct import from url failing (#3918)

This commit is contained in:
Akash K 2024-03-20 20:06:51 +05:30 committed by GitHub
parent 146c73d7b6
commit fc20b76080
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -79,7 +79,7 @@ const importCollections = (url: unknown, type: unknown) =>
content.data,
TO.fromPredicate(isOfType("string")),
TE.fromTaskOption(() => IMPORTER_INVALID_FILE_FORMAT),
TE.chain((data) => importer.importer(data))
TE.chain((data) => importer.importer([data]))
)
)
)