2021-04-08 14:06:27 +03:00
|
|
|
import moment from 'moment';
|
2022-03-08 14:32:01 +03:00
|
|
|
import {Factory} from 'miragejs';
|
2021-04-08 14:06:27 +03:00
|
|
|
|
|
|
|
export default Factory.extend({
|
|
|
|
createdAt() { return moment().toISOString(); },
|
|
|
|
createdBy: 1,
|
|
|
|
name(i) { return `Label ${i}`; },
|
|
|
|
slug(i) { return `label-${i}`; },
|
|
|
|
updatedAt() { return moment().toISOString(); },
|
|
|
|
updatedBy: 1,
|
|
|
|
count() {
|
|
|
|
// this gets updated automatically by the label serializer
|
|
|
|
return {members: 0};
|
|
|
|
}
|
|
|
|
});
|