Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const FeathersSequelize = require('feathers-sequelize');
const errors = require('@feathersjs/errors');
const logger = require('winston');
class NotModified extends errors.FeathersError {
constructor(message, data) {
super(message, 'not-modified', 304, 'NotModified', data);
}
}
/*
* This class exist mostly as a wrapper around the feathers-sequelize service
* for the Update model.
*/
class Update extends FeathersSequelize.Service {
constructor(options) {
super(options);
this.app = options.app;
/*
* Undefining some APIs which we don't want/need.
*/
this.update = undefined;
this.remove = undefined;
}
/*
* Return the latest update level for the given parameters
*
* Typically will not be called with an `id`, and is directly