Skip to content
This repository was archived by the owner on Jun 27, 2019. It is now read-only.

Commit d922ea5

Browse files
committed
Merge remote-tracking branch 'origin/own-data-managing' into own-data-managing
2 parents 16f451c + 8e5e640 commit d922ea5

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

server/seeder/base/pages.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ module.exports = (seederstore) => {
3232
template: {
3333
title: 'Data Privacy',
3434
type: 'dataPrivacy',
35-
key: 'data-privacy',
35+
key: 'privacy',
3636
content: '<strong>ADD PRIVACY POLICY!</strong>',
3737
language: 'en'
3838
}
@@ -42,7 +42,7 @@ module.exports = (seederstore) => {
4242
template: {
4343
title: 'Datenschutzerklärung',
4444
type: 'dataPrivacy',
45-
key: 'data-privacy',
45+
key: 'privacy',
4646
content: '<strong>FÜGE DATENSCHUTZRICHTLINIEN HINZU!</strong>',
4747
language: 'de'
4848
}

server/services/users/hooks/remove-all-related-user-data.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module.exports = () => {
77
try {
88
return await hook.app.service(service).remove(null, {query});
99
} catch (err) {
10-
console.log('ERROR ON SERVICE', service);
10+
hook.app.error('ERROR ON SERVICE' + service);
1111
throw new errors.GeneralError(err.message);
1212
}
1313
}
@@ -24,8 +24,6 @@ module.exports = () => {
2424

2525
const query = hook.params.query;
2626

27-
let res;
28-
2927
if (query.deleteContributions === true) {
3028
await deleteData('contributions', {
3129
userId: user._id,

0 commit comments

Comments
 (0)