mirror of
https://github.com/wassname/talk.git
synced 2026-10-27 13:20:15 +08:00
use config variable scheduledDeletionDelayHours to schedule deletion time on hoc (#1775)
This commit is contained in:
1 parent
c3e162dd56
commit
2edb8e8d0a
1 file changed
+3
-1
@@ -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, {
|
||||
|
||||
Reference in new issue
Block a user