diff --git a/.vscode/settings.json b/.vscode/settings.json index 1ce73cd..255c123 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,6 +1,7 @@ { "cSpell.words": [ "Fastify", + "Siwe", "viem" ] } \ No newline at end of file diff --git a/backend/package.json b/backend/package.json index 00ab2c7..7ec5c88 100644 --- a/backend/package.json +++ b/backend/package.json @@ -29,6 +29,7 @@ "fastify": "^4.26.1", "fastify-plugin": "^4.5.1", "fastify-sse-v2": "^4.0.0", + "ftp-srv": "^4.6.3", "js-big-decimal": "^2.0.7", "jsonwebtoken": "^9.0.2", "loginWithCrypto": "workspace:*", diff --git a/backend/src/index.ts b/backend/src/index.ts index 3344e59..0cde006 100644 --- a/backend/src/index.ts +++ b/backend/src/index.ts @@ -1,3 +1,4 @@ import { startupFastifyServer } from "./fastify.js"; import "./di.js"; + startupFastifyServer(); diff --git a/backend/src/services/file/service.ts b/backend/src/services/file/service.ts index 429b32e..3c8cfe0 100644 --- a/backend/src/services/file/service.ts +++ b/backend/src/services/file/service.ts @@ -45,7 +45,7 @@ export const fileService = ( //this is task executor abstraction so it should handle it for me const results = await worker.context ?.beginBatch() - .uploadFile(`${DIR_NAME}${fileName}`, `/golem/workdir/${fileName}`) + .uploadFile(`ftp://127.0.0.1/${fileName}`, `/golem/workdir/${fileName}`) .run(`/golem/scripts/clamscan-json.sh /golem/workdir/${fileName}`) .run("ls /golem/output/") .run(`cat /golem/output/temp/metadata.json`) diff --git a/backend/src/services/user/service.ts b/backend/src/services/user/service.ts index ac1b9e8..5b7b649 100644 --- a/backend/src/services/user/service.ts +++ b/backend/src/services/user/service.ts @@ -4,7 +4,7 @@ import { v4 as uuidv4 } from "uuid"; import mongoose from "mongoose"; import { container } from "../../di.js"; const randomNonce = () => { - return Math.floor(Math.random() * 10000000); + return Math.floor(Math.random() * 10000000000); }; export const userService: IUserService = { diff --git a/frontend/index.html b/frontend/index.html index 9f5c84a..246ff77 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -13,9 +13,12 @@ +
+ +