You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
planka_custom/client/src/orm.js

34 lines
377 B
JavaScript

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