mirror of
https://github.com/wekan/wekan.git
synced 2025-04-24 22:17:16 -04:00
25 lines
445 B
JavaScript
25 lines
445 B
JavaScript
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;
|
|
});
|