Skip to content

Instantly share code, notes, and snippets.

@randomnerd
Created November 9, 2015 19:52
Show Gist options
  • Save randomnerd/29732fb4776de33a15d4 to your computer and use it in GitHub Desktop.
Save randomnerd/29732fb4776de33a15d4 to your computer and use it in GitHub Desktop.
import Sequelize from 'sequelize';
import ServiceFactory from './service_factory';
let PostService = ServiceFactory('posts', {
title: {
type: Sequelize.STRING
},
body: {
type: Sequelize.TEXT
}
});
// PostService.created = function(data, params, callback) {
// console.log(data, params, callback);
// callback(null, data);
// };
export default PostService;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment