From c31161c41a54f6e05e7a75de54f86629eafec0e0 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Fri, 5 Mar 2021 15:36:07 -0500 Subject: [PATCH] rename release_time to releaseTime --- dist/bundle.es.js | 8 ++++---- src/redux/actions/publish.js | 6 +++--- src/redux/reducers/publish.js | 3 ++- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/dist/bundle.es.js b/dist/bundle.es.js index ae032da..87888eb 100644 --- a/dist/bundle.es.js +++ b/dist/bundle.es.js @@ -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: '', diff --git a/src/redux/actions/publish.js b/src/redux/actions/publish.js index 952395d..ec8bc09 100644 --- a/src/redux/actions/publish.js +++ b/src/redux/actions/publish.js @@ -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) { diff --git a/src/redux/reducers/publish.js b/src/redux/reducers/publish.js index a75181d..fe874b8 100644 --- a/src/redux/reducers/publish.js +++ b/src/redux/reducers/publish.js @@ -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: '',