mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
21 lines
689 B
JavaScript
21 lines
689 B
JavaScript
|
const ghostBookshelf = require('./base');
|
||
|
|
||
|
const MemberSubscribeEvent = ghostBookshelf.Model.extend({tableName: 'members_subscribe_events'}, {
|
||
|
async edit() {
|
||
|
throw new errors.IncorrectUsageError('Cannot edit MemberSubscribeEvent');
|
||
|
},
|
||
|
|
||
|
async destroy() {
|
||
|
throw new errors.IncorrectUsageError('Cannot destroy MemberSubscribeEvent');
|
||
|
}
|
||
|
});
|
||
|
|
||
|
const MemberSubscribeEvents = ghostBookshelf.Collection.extend({
|
||
|
model: MemberSubscribeEvent
|
||
|
});
|
||
|
|
||
|
module.exports = {
|
||
|
MemberSubscribeEvent: ghostBookshelf.model('MemberSubscribeEvent', MemberSubscribeEvent),
|
||
|
MemberSubscribeEvents: ghostBookshelf.collection('MemberSubscribeEvents', MemberSubscribeEvents)
|
||
|
};
|