chore: 🤖 Update models to new field names (#149)

This commit is contained in:
Zhihe Li authored and GitHub committed 2023-03-24 10:52:55 -04:00
1 parent b5045f1851
commit e460a5e429
7 files changed
+16 -16

No files matched your search

@@ -43,13 +43,13 @@ export default class GeneratedChannelRecordingModel extends BaseModel {
description: 'The time the Channel started.',
readOnly: true,
})
started_time;
start_time;
@attr('date', {
description: 'The time the Channel finished.',
readOnly: true,
})
finished_time;
end_time;
@attr({
description: 'The array of mime types that this recording will support.',
@@ -44,13 +44,13 @@ export default class GeneratedConnectionRecordingModel extends BaseModel {
description: 'The time the Connection started.',
readOnly: true,
})
started_time;
start_time;
@attr('date', {
description: 'The time the Connection finished.',
readOnly: true,
})
finished_time;
end_time;
@attr({
description: 'The array of mime types that this recording will support.',
@@ -61,13 +61,13 @@ export default class GeneratedSessionRecordingModel extends BaseModel {
description: 'The time the Session started.',
readOnly: true,
})
started_time;
start_time;
@attr('date', {
description: 'The time the Session finished.',
readOnly: true,
})
finished_time;
end_time;
@attr('date', {
description: 'The time the Session recording was last updated.',
@@ -13,10 +13,10 @@ export default Factory.extend({
bytes_up: () => faker.datatype.number(),
bytes_down: () => faker.datatype.number(),
errors: () => faker.datatype.number({ max: 10 }),
started_time() {
return faker.date.recent(3, this.finished_time);
start_time() {
return faker.date.recent(3, this.end_time);
},
finished_time: () => faker.date.recent(),
end_time: () => faker.date.recent(),
duration: () => `${faker.datatype.number()}s`,
mime_types: () => ['application/x-asciicast'],
});
@@ -13,9 +13,9 @@ export default Factory.extend({
bytes_up: () => faker.datatype.number(),
bytes_down: () => faker.datatype.number(),
errors: () => faker.datatype.number({ max: 10 }),
started_time() {
return faker.date.recent(3, this.finished_time);
start_time() {
return faker.date.recent(3, this.end_time);
},
finished_time: () => faker.date.recent(),
end_time: () => faker.date.recent(),
duration: () => `${faker.datatype.number()}s`,
});
@@ -13,10 +13,10 @@ export default Factory.extend({
bytes_up: () => faker.datatype.number(),
bytes_down: () => faker.datatype.number(),
errors: () => faker.datatype.number({ max: 10 }),
started_time() {
return faker.date.recent(3, this.finished_time);
start_time() {
return faker.date.recent(3, this.end_time);
},
finished_time() {
end_time() {
return faker.date.recent(1, this.updated_time);
},
updated_time: () => faker.date.recent(),
@@ -24,7 +24,7 @@
<B.Tr>
<B.Td>
<span class='hds-foreground-faint'>
{{format-date B.data.started_time format='mmddyyhhmm'}}
{{format-date B.data.start_time format='mmddyyhhmm'}}
</span>
</B.Td>
<B.Td>