Merge branch 'hotfix/update-removed-attachment'
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -44,3 +44,7 @@ mongo-volume-backup-*.tar.gz
|
|||||||
|
|
||||||
# backups directory for mongo-volume tarballs
|
# backups directory for mongo-volume tarballs
|
||||||
/backups/
|
/backups/
|
||||||
|
|
||||||
|
# Serena AI assistant
|
||||||
|
.serena/
|
||||||
|
*.serena-memory
|
||||||
|
|||||||
28
.mcp.json
Normal file
28
.mcp.json
Normal 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"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -86,7 +86,7 @@ const serializeAttachment = async (billAttachment: File | null) => {
|
|||||||
lastModified: fileLastModified,
|
lastModified: fileLastModified,
|
||||||
} = billAttachment;
|
} = billAttachment;
|
||||||
|
|
||||||
if(!fileName || fileName === 'undefined') {
|
if(!fileName || fileName === 'undefined' || fileSize === 0) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user