We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d391d9 commit 63b92d4Copy full SHA for 63b92d4
1 file changed
lib/user.js
@@ -52,14 +52,8 @@ export default class User {
52
}
53
54
return this.find(params)
55
- .then((res) => this.requestPermanentDeletion(res.body.id))
56
- .then((res) => {
57
- if (f) {
58
- return f(null, res);
59
- }
60
-
61
- return res;
62
- }).catch((err) => {
+ .then((res) => this.requestPermanentDeletion(res.body.id, f))
+ .catch((err) => {
63
if (f) {
64
return f(err);
65
0 commit comments