mirror of
https://github.com/wekan/wekan.git
synced 2026-01-05 17:18:49 +01:00
Card clone OK
This commit is contained in:
parent
012ca39a8d
commit
4c5a2fbd1f
3 changed files with 42 additions and 8 deletions
|
|
@ -1061,6 +1061,7 @@ Migrations.add('change-attachment-library', () => {
|
|||
let opts = {
|
||||
fileName: file.name(),
|
||||
type: file.type(),
|
||||
size: file.size(),
|
||||
fileId: file._id,
|
||||
meta: {
|
||||
userId: file.userId,
|
||||
|
|
@ -1077,8 +1078,6 @@ Migrations.add('change-attachment-library', () => {
|
|||
Attachments.addFile(path, opts, (err, fileRef) => {
|
||||
if (err) {
|
||||
console.log('error when migrating ', fileName, err);
|
||||
} else {
|
||||
file.remove();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue