Skip to content

Commit 6291acd

Browse files
author
Jason Du
committed
Fix: add timekeeper move users endpoint
1 parent 9d03fdc commit 6291acd

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

lib/Services/timekeeper.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,17 @@ class Timekeeper extends Request {
9595

9696
return this.send('DELETE', path, { query });
9797
}
98+
99+
/**
100+
* @param {Object} payload
101+
* @param {Object} opts
102+
*/
103+
migrateUser(payload, opts) {
104+
const path = `/move/users`;
105+
opts = { response: 60000, deadline: 90000, ...opts };
106+
opts.payload = payload;
107+
return this.send('POST', path, opts);
108+
}
98109
}
99110

100111
module.exports = Timekeeper;

0 commit comments

Comments
 (0)