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