diff --git a/client/components/cards/attachments.js b/client/components/cards/attachments.js index aa6175c6e..0bb54181d 100644 --- a/client/components/cards/attachments.js +++ b/client/components/cards/attachments.js @@ -1,3 +1,5 @@ +import Attachments from '../../../models/attachments'; + Template.attachmentsGalery.events({ 'click .js-add-attachment': Popup.open('cardAttachments'), 'click .js-confirm-delete': Popup.afterConfirm( diff --git a/client/components/main/editor.js b/client/components/main/editor.js index 94da9a8eb..b7c061554 100644 --- a/client/components/main/editor.js +++ b/client/components/main/editor.js @@ -1,3 +1,5 @@ +import Attachments from '/models/attachments'; + const specialHandles = [ {userId: 'board_members', username: 'board_members'}, {userId: 'card_members', username: 'card_members'} diff --git a/client/components/users/userAvatar.js b/client/components/users/userAvatar.js index db24b0548..11a0779a5 100644 --- a/client/components/users/userAvatar.js +++ b/client/components/users/userAvatar.js @@ -3,6 +3,7 @@ import Avatars from '/models/avatars'; import Users from '/models/users'; import Org from '/models/org'; import Team from '/models/team'; +import Avatars from '/models/avatars'; Template.userAvatar.helpers({ userData() { diff --git a/models/activities.js b/models/activities.js index 2ff8efa5a..a37c47135 100644 --- a/models/activities.js +++ b/models/activities.js @@ -1,3 +1,5 @@ +import Attachments from './attachments'; + // Activities don't need a schema because they are always set from the a trusted // environment - the server - and there is no risk that a user change the logic // we use with this collection. Moreover using a schema for this collection diff --git a/models/boards.js b/models/boards.js index 5ca2a8e5f..ad3b3dcdb 100644 --- a/models/boards.js +++ b/models/boards.js @@ -6,8 +6,10 @@ import { TYPE_TEMPLATE_CONTAINER, } from '/config/const'; import Users from "./users"; +import Attachments from './attachments'; const escapeForRegex = require('escape-string-regexp'); + Boards = new Mongo.Collection('boards'); /** diff --git a/models/cards.js b/models/cards.js index 142b738a4..ea21380d0 100644 --- a/models/cards.js +++ b/models/cards.js @@ -4,6 +4,7 @@ import { TYPE_LINKED_BOARD, TYPE_LINKED_CARD, } from '../config/const'; +import Attachments from './attachments'; Cards = new Mongo.Collection('cards'); diff --git a/models/exporter.js b/models/exporter.js index d2e31bca7..54bd7e9df 100644 --- a/models/exporter.js +++ b/models/exporter.js @@ -1,4 +1,7 @@ const Papa = require('papaparse'); +import Attachments from './attachments'; + +//const stringify = require('csv-stringify'); // exporter maybe is broken since Gridfs introduced, add fs and path export class Exporter { diff --git a/server/publications/boards.js b/server/publications/boards.js index ed3cdce1d..6ed9f94ee 100644 --- a/server/publications/boards.js +++ b/server/publications/boards.js @@ -1,3 +1,5 @@ +import Attachments from '../../models/attachments'; + // This is the publication used to display the board list. We publish all the // non-archived boards: // 1. that the user is a member of