refactor: Upload file to storage, and then pass attachmentId to collections.import
This avoids having large file uploads going directly to the server and allows us to fetch it async into a worker process
This commit is contained in:
@@ -111,7 +111,7 @@ describe("#collections.list", () => {
|
||||
});
|
||||
|
||||
describe("#collections.import", () => {
|
||||
it("should error if no file is passed", async () => {
|
||||
it("should error if no attachmentId is passed", async () => {
|
||||
const user = await buildUser();
|
||||
const res = await server.post("/api/collections.import", {
|
||||
body: {
|
||||
|
||||
Reference in New Issue
Block a user