| 123456789101112131415161718192021222324252627282930313233343536 | import { ReactiveCache } from '/imports/reactiveCache';Meteor.methods({  copySwimlane(swimlaneId, toBoardId) {    check(swimlaneId, String);    check(toBoardId, String);    const swimlane = ReactiveCache.getSwimlane(swimlaneId);    const toBoard = ReactiveCache.getBoard(toBoardId);    let ret = false;    if (swimlane && toBoard) {      swimlane.copy(toBoardId);      ret = true;    }    return ret;  },  moveSwimlane(swimlaneId, toBoardId) {    check(swimlaneId, String);    check(toBoardId, String);    const swimlane = ReactiveCache.getSwimlane(swimlaneId);    const toBoard = ReactiveCache.getBoard(toBoardId);    let ret = false;    if (swimlane && toBoard) {      swimlane.move(toBoardId);      ret = true;    }    return ret;  },});
 |