Merge branch 'hotfix/update-removed-attachment'

This commit is contained in:
2025-08-29 22:37:06 +02:00
3 changed files with 33 additions and 1 deletions

4
.gitignore vendored
View File

@@ -44,3 +44,7 @@ mongo-volume-backup-*.tar.gz
# backups directory for mongo-volume tarballs
/backups/
# Serena AI assistant
.serena/
*.serena-memory

28
.mcp.json Normal file
View File

@@ -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"
}
}
}
}

View File

@@ -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;
}