mirror of
https://github.com/plankanban/planka.git
synced 2025-12-16 17:23:21 +03:00
Fix attachment duplication on add
This commit is contained in:
@@ -11,6 +11,10 @@ module.exports = {
|
||||
regex: /^[0-9]+$/,
|
||||
required: true,
|
||||
},
|
||||
requestId: {
|
||||
type: 'string',
|
||||
isNotEmptyString: true,
|
||||
},
|
||||
},
|
||||
|
||||
exits: {
|
||||
@@ -58,6 +62,7 @@ module.exports = {
|
||||
isImage: file.extra.isImage,
|
||||
name: file.filename,
|
||||
},
|
||||
inputs.requestId,
|
||||
this.req,
|
||||
);
|
||||
|
||||
|
||||
@@ -12,6 +12,12 @@ module.exports = {
|
||||
type: 'json',
|
||||
required: true,
|
||||
},
|
||||
requestId: {
|
||||
type: 'string',
|
||||
isNotEmptyString: true,
|
||||
allowNull: true,
|
||||
defaultsTo: null,
|
||||
},
|
||||
request: {
|
||||
type: 'ref',
|
||||
},
|
||||
@@ -29,6 +35,7 @@ module.exports = {
|
||||
'attachmentCreate',
|
||||
{
|
||||
item: attachment,
|
||||
requestId: inputs.requestId,
|
||||
},
|
||||
inputs.request,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user