mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-29 22:01:49 +03:00
21 lines
506 B
JavaScript
21 lines
506 B
JavaScript
|
import moment from 'moment';
|
||
|
import {Factory} from 'ember-cli-mirage';
|
||
|
|
||
|
export default Factory.extend({
|
||
|
type: 'content',
|
||
|
secret() {
|
||
|
if (this.integration) {
|
||
|
return `${this.integration.slug}_${this.type}_key-12345`;
|
||
|
}
|
||
|
return `${this.type}_key-12345`;
|
||
|
},
|
||
|
lastSeenAt() {
|
||
|
return moment.utc().format();
|
||
|
},
|
||
|
|
||
|
createdAt() { return moment.utc().format(); },
|
||
|
createdBy: 1,
|
||
|
updatedAt() { return moment.utc().format(); },
|
||
|
updatedBy: 1
|
||
|
});
|