mirror of
https://github.com/wekan/wekan.git
synced 2025-12-27 04:38:49 +01:00
22 lines
378 B
JavaScript
22 lines
378 B
JavaScript
import Attachments from '/models/attachments';
|
|
import { ObjectID } from 'bson';
|
|
|
|
Meteor.publish('attachmentsList', function() {
|
|
const ret = Attachments.find(
|
|
{},
|
|
{
|
|
fields: {
|
|
_id: 1,
|
|
name: 1,
|
|
size: 1,
|
|
type: 1,
|
|
meta: 1,
|
|
},
|
|
sort: {
|
|
name: 1,
|
|
},
|
|
limit: 250,
|
|
},
|
|
).cursor;
|
|
return ret;
|
|
});
|