From 2edb8e8d0aaf302574a3e68444f57be41252e1cb Mon Sep 17 00:00:00 2001 From: Leandro Date: Wed, 1 Aug 2018 23:48:11 +0200 Subject: [PATCH] use config variable scheduledDeletionDelayHours to schedule deletion time on hoc (#1775) --- plugins/talk-plugin-profile-data/client/hocs/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/talk-plugin-profile-data/client/hocs/index.js b/plugins/talk-plugin-profile-data/client/hocs/index.js index c90ad21df..da18b83cf 100644 --- a/plugins/talk-plugin-profile-data/client/hocs/index.js +++ b/plugins/talk-plugin-profile-data/client/hocs/index.js @@ -3,6 +3,8 @@ import { gql } from 'react-apollo'; import moment from 'moment'; import update from 'immutability-helper'; +import { scheduledDeletionDelayHours } from '../../config'; + export const withRequestDownloadLink = withMutation( gql` mutation DownloadCommentHistory { @@ -48,7 +50,7 @@ export const withRequestAccountDeletion = withMutation( }); const scheduledDeletionDate = moment() - .add(24, 'hours') + .add(scheduledDeletionDelayHours, 'hours') .toDate(); const data = update(prev, {