Ghost/ghost/admin/mirage/models/member.js
Rishabh Garg 0bfc402090 Added newsletter management for member (#2336)
refs https://github.com/TryGhost/Team/issues/1492

Allows site owners to manage member's newsletter preference directly in Admin.

- also adds `visibility` property for newsletter model
- updates members test model to include `visibility`
2022-04-14 20:10:04 +05:30

10 lines
213 B
JavaScript

import {Model, hasMany} from 'miragejs';
export default Model.extend({
labels: hasMany(),
emailRecipients: hasMany(),
products: hasMany(),
newsletters: hasMany(),
subscriptions: hasMany()
});