Skip to content

Commit

Permalink
Fixed issue that prevented hipchat rooms from being imported (#11188)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hudell authored and rodrigok committed Jun 20, 2018
1 parent 0574eec commit 04fb004
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/rocketchat-importer-hipchat/server/importer.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class HipChatImporter extends Base {
// const contentType = ref.contentType;
const zip = new this.AdmZip(new Buffer(image, 'base64'));
const zipEntries = zip.getEntries();
const tempRooms = [];
let tempRooms = [];
let tempUsers = [];
const tempMessages = {};

Expand All @@ -42,7 +42,7 @@ export class HipChatImporter extends Base {
let roomName = entry.entryName.split(this.roomPrefix)[1];
if (roomName === 'list.json') {
super.updateProgress(ProgressStep.PREPARING_CHANNELS);
const tempRooms = JSON.parse(entry.getData().toString()).rooms;
tempRooms = JSON.parse(entry.getData().toString()).rooms;
tempRooms.forEach(room => {
room.name = s.slugify(room.name);
});
Expand Down

0 comments on commit 04fb004

Please sign in to comment.