Skip to content

Commit cf16d2e

Browse files
authored
Merge pull request #29 from myDevicesIoT/feat/timekeeper-application-migration
Fix: add timekeeper move users endpoint
2 parents 9d03fdc + 6291acd commit cf16d2e

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)