ghost
Version:
The professional publishing platform
23 lines (19 loc) • 656 B
JavaScript
const errors = require('@tryghost/errors');
const ghostBookshelf = require('./base');
const RecommendationSubscribeEvent = ghostBookshelf.Model.extend({
tableName: 'recommendation_subscribe_events'
}, {
async edit() {
throw new errors.IncorrectUsageError({
message: 'Cannot edit RecommendationSubscribeEvent'
});
},
async destroy() {
throw new errors.IncorrectUsageError({
message: 'Cannot destroy RecommendationSubscribeEvent'
});
}
});
module.exports = {
RecommendationSubscribeEvent: ghostBookshelf.model('RecommendationSubscribeEvent', RecommendationSubscribeEvent)
};