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, {