mirror of
https://github.com/vale981/Vulcan
synced 2025-03-09 12:16:37 -04:00
16 lines
260 B
JavaScript
16 lines
260 B
JavaScript
import Users from "meteor/vulcan:users";
|
|
|
|
Users.addField([
|
|
/**
|
|
Count of the user's posts
|
|
*/
|
|
{
|
|
fieldName: "postCount",
|
|
fieldSchema: {
|
|
type: Number,
|
|
optional: true,
|
|
defaultValue: 0,
|
|
viewableBy: ['guests'],
|
|
}
|
|
}
|
|
]);
|