The Open Source kanban (built with Meteor). Keep variable/table/field names camelCase. For translations, only add Pull Request changes to wekan/i18n/en.i18n.json , other translations are done at https://transifex.com/wekan/wekan only.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
wekan/server/publications/attachments.js

25 lines
445 B

import Attachments from '/models/attachments';
import { ObjectID } from 'bson';
Meteor.publish('attachmentsList', function(limit) {
const ret = ReactiveCache.getAttachments(
{},
{
fields: {
_id: 1,
name: 1,
size: 1,
type: 1,
meta: 1,
path: 1,
versions: 1,
},
sort: {
name: 1,
},
limit: limit,
},
true,
).cursor;
return ret;
});