Fix lint errors. Update changelog.

This commit is contained in:
Lauri Ojansivu 2018-01-25 08:22:11 +02:00
parent 188341cf50
commit 7f4401f3a2
3 changed files with 95 additions and 83 deletions

View file

@ -1,3 +1,12 @@
# Upcoming Wekan release
This release adds the following new features:
* [Swimlanes](https://github.com/wekan/wekan/issues/955);
* Added new language: Igbo.
Thanks to GitHub users andresmanelli for contributions.
# v0.64 2018-01-22 Wekan release # v0.64 2018-01-22 Wekan release
This release adds the following new features: This release adds the following new features:

View file

@ -1,6 +1,4 @@
try { Attachments = new FS.Collection('attachments', {
Attachments = new FS.Collection('attachments', {
stores: [ stores: [
// XXX Add a new store for cover thumbnails so we don't load big images in // XXX Add a new store for cover thumbnails so we don't load big images in
@ -25,11 +23,10 @@ Attachments = new FS.Collection('attachments', {
}, },
}), }),
], ],
}); });
} catch (err) { console.log(err); throw err; }
if (Meteor.isServer) { if (Meteor.isServer) {
Attachments.allow({ Attachments.allow({
insert(userId, doc) { insert(userId, doc) {
return allowIsBoardMember(userId, Boards.findOne(doc.boardId)); return allowIsBoardMember(userId, Boards.findOne(doc.boardId));
@ -54,11 +51,11 @@ if (Meteor.isServer) {
fetch: ['boardId'], fetch: ['boardId'],
}); });
} }
// XXX Enforce a schema for the Attachments CollectionFS // XXX Enforce a schema for the Attachments CollectionFS
if (Meteor.isServer) { if (Meteor.isServer) {
Attachments.files.after.insert((userId, doc) => { Attachments.files.after.insert((userId, doc) => {
// If the attachment doesn't have a source field // If the attachment doesn't have a source field
// or its source is different than import // or its source is different than import
@ -75,7 +72,13 @@ if (Meteor.isServer) {
} else { } else {
// Don't add activity about adding the attachment as the activity // Don't add activity about adding the attachment as the activity
// be imported and delete source field // be imported and delete source field
Attachments.update( {_id: doc._id}, {$unset: { source : '' } } ); Attachments.update({
_id: doc._id,
}, {
$unset: {
source: '',
},
});
} }
}); });
@ -84,4 +87,4 @@ if (Meteor.isServer) {
attachmentId: doc._id, attachmentId: doc._id,
}); });
}); });
} }

View file

@ -22,7 +22,7 @@ const sandstormBoard = {
if (isSandstorm && Meteor.isServer) { if (isSandstorm && Meteor.isServer) {
const fs = require('fs'); const fs = require('fs');
const Capnp = require("/node_modules/capnp.js"); const Capnp = require('/node_modules/capnp.js');
const Package = Capnp.importSystem('sandstorm/package.capnp'); const Package = Capnp.importSystem('sandstorm/package.capnp');
const Powerbox = Capnp.importSystem('sandstorm/powerbox.capnp'); const Powerbox = Capnp.importSystem('sandstorm/powerbox.capnp');
const Identity = Capnp.importSystem('sandstorm/identity.capnp'); const Identity = Capnp.importSystem('sandstorm/identity.capnp');