Commit 21b7b5ca authored by anton's avatar anton
Browse files

Fix this references

parent 7bcb3bf8
Pipeline #63820 passed with stage
in 5 minutes and 42 seconds
......@@ -89,14 +89,14 @@
},
submit: {
async handler () {
await this.fetchMetadata()
await _this.fetchMetadata()
let
start = _this.selectorValue,
end
if ((!this.payload.customMediaDate || !_this.selectorValue) && _this.metadata && _this.metadata.publishedAt) {
if ((!_this.payload.customMediaDate || !_this.selectorValue) && _this.metadata && _this.metadata.publishedAt) {
start = DateTime.fromISO(_this.metadata.publishedAt, { setZone: true }).toISO()
}
else if (!this.payload.customMediaDate) start = DateTime.local().toString()
else if (!_this.payload.customMediaDate) start = DateTime.local().toString()
if (_this.metadata && _this.metadata.duration) {
end = DateTime.fromISO(start, {setZone: true}).plus(_this.metadata.duration * 1000).toISO()
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment