Files
planka/client/src/orm.js
2020-03-25 00:15:47 +05:00

34 lines
383 B
JavaScript
Executable File

import { ORM } from 'redux-orm';
import {
Action,
Board,
Card,
Label,
List,
Notification,
Project,
ProjectMembership,
Task,
User,
} from './models';
const orm = new ORM({
stateSelector: (state) => state.orm,
});
orm.register(
User,
Project,
ProjectMembership,
Board,
List,
Label,
Card,
Task,
Action,
Notification,
);
export default orm;