mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 04:26:41 -04:00
17 lines
No EOL
278 B
JavaScript
17 lines
No EOL
278 B
JavaScript
import Users from "meteor/nova:users";
|
|
|
|
Users.addField([
|
|
/**
|
|
Count of the user's posts
|
|
*/
|
|
{
|
|
fieldName: "postCount",
|
|
fieldSchema: {
|
|
type: Number,
|
|
optional: true,
|
|
publish: true,
|
|
defaultValue: 0,
|
|
viewableBy: ['guests'],
|
|
}
|
|
}
|
|
]); |