mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Fixing slack import. (#2819)
This commit is contained in:
committed by
Joram Wilander
parent
938caa061d
commit
f3fa435a1b
@@ -348,10 +348,9 @@ export default class Client {
|
||||
|
||||
importSlack = (fileData, success, error) => {
|
||||
request.
|
||||
post(`${this.getTeamsRoute()}/import_team`).
|
||||
post(`${this.getTeamNeededRoute()}/import_team`).
|
||||
set(this.defaultHeaders).
|
||||
type('application/json').
|
||||
accept('application/json').
|
||||
accept('application/octet-stream').
|
||||
send(fileData).
|
||||
end(this.handleResponse.bind(this, 'importSlack', success, error));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user