rename release_time to releaseTime
This commit is contained in:
parent
251c646851
commit
c31161c41a
3 changed files with 9 additions and 8 deletions
8
dist/bundle.es.js
vendored
8
dist/bundle.es.js
vendored
|
@ -4692,7 +4692,7 @@ const doPublish = (success, fail, preview) => (dispatch, getState) => {
|
|||
filePath,
|
||||
description,
|
||||
language,
|
||||
release_time,
|
||||
releaseTime,
|
||||
license,
|
||||
licenseUrl,
|
||||
useLBRYUploader,
|
||||
|
@ -4760,8 +4760,8 @@ const doPublish = (success, fail, preview) => (dispatch, getState) => {
|
|||
}
|
||||
|
||||
// Set release time to curret date. On edits, keep original release/transaction time as release_time
|
||||
if (release_time) {
|
||||
publishPayload.release_time = Number(Math.round(new Date(release_time) / 1000));
|
||||
if (releaseTime) {
|
||||
publishPayload.release_time = Number(Math.round(new Date(releaseTime) / 1000));
|
||||
} else if (myClaimForUriEditing && myClaimForUriEditing.value.release_time) {
|
||||
publishPayload.release_time = Number(myClaimForUri.value.release_time);
|
||||
} else if (myClaimForUriEditing && myClaimForUriEditing.timestamp) {
|
||||
|
@ -5935,7 +5935,7 @@ const defaultState$4 = {
|
|||
uploadThumbnailStatus: API_DOWN,
|
||||
description: '',
|
||||
language: '',
|
||||
release_time: undefined,
|
||||
releaseTime: undefined,
|
||||
nsfw: false,
|
||||
channel: CHANNEL_ANONYMOUS,
|
||||
channelId: '',
|
||||
|
|
|
@ -254,7 +254,7 @@ export const doPublish = (success: Function, fail: Function, preview: Function)
|
|||
filePath,
|
||||
description,
|
||||
language,
|
||||
release_time,
|
||||
releaseTime,
|
||||
license,
|
||||
licenseUrl,
|
||||
useLBRYUploader,
|
||||
|
@ -342,8 +342,8 @@ export const doPublish = (success: Function, fail: Function, preview: Function)
|
|||
}
|
||||
|
||||
// Set release time to curret date. On edits, keep original release/transaction time as release_time
|
||||
if (release_time) {
|
||||
publishPayload.release_time = Number(Math.round(new Date(release_time) / 1000));
|
||||
if (releaseTime) {
|
||||
publishPayload.release_time = Number(Math.round(new Date(releaseTime) / 1000));
|
||||
} else if (myClaimForUriEditing && myClaimForUriEditing.value.release_time) {
|
||||
publishPayload.release_time = Number(myClaimForUri.value.release_time);
|
||||
} else if (myClaimForUriEditing && myClaimForUriEditing.timestamp) {
|
||||
|
|
|
@ -23,6 +23,7 @@ type PublishState = {
|
|||
uploadThumbnailStatus: string,
|
||||
description: string,
|
||||
language: string,
|
||||
releaseTime: ?string,
|
||||
channel: string,
|
||||
channelId: ?string,
|
||||
name: string,
|
||||
|
@ -54,7 +55,7 @@ const defaultState: PublishState = {
|
|||
uploadThumbnailStatus: THUMBNAIL_STATUSES.API_DOWN,
|
||||
description: '',
|
||||
language: '',
|
||||
release_time: undefined,
|
||||
releaseTime: undefined,
|
||||
nsfw: false,
|
||||
channel: CHANNEL_ANONYMOUS,
|
||||
channelId: '',
|
||||
|
|
Loading…
Reference in a new issue