diff --git a/.gitignore b/.gitignore index 9750d07..13bfe6f 100644 --- a/.gitignore +++ b/.gitignore @@ -44,3 +44,7 @@ mongo-volume-backup-*.tar.gz # backups directory for mongo-volume tarballs /backups/ + +# Serena AI assistant +.serena/ +*.serena-memory diff --git a/.mcp.json b/.mcp.json new file mode 100644 index 0000000..ad2686c --- /dev/null +++ b/.mcp.json @@ -0,0 +1,28 @@ +{ + "mcpServers": { + "serena": { + "command": "uvx", + "args": [ + "--from", + "git+https://github.com/oraios/serena", + "serena", + "start-mcp-server", + "--enable-web-dashboard", + "false" + ] + }, + "context7": { + "type": "http", + "url": "https://mcp.context7.com/mcp" + }, + "git": { + "command": "uvx", + "args": [ + "mcp-server-git" + ], + "env": { + "MCP_GIT_ALLOW": "/home/knee-cola/web-pro/evidencija-rezija" + } + } + } +} \ No newline at end of file diff --git a/app/lib/actions/billActions.ts b/app/lib/actions/billActions.ts index 89a22fb..3a5de12 100644 --- a/app/lib/actions/billActions.ts +++ b/app/lib/actions/billActions.ts @@ -86,7 +86,7 @@ const serializeAttachment = async (billAttachment: File | null) => { lastModified: fileLastModified, } = billAttachment; - if(!fileName || fileName === 'undefined') { + if(!fileName || fileName === 'undefined' || fileSize === 0) { return null; }