Skip to content

Commit

Permalink
Fix wrong imports (#13601)
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigok authored Mar 4, 2019
1 parent 1343fe6 commit 5ec74ad
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/rocketchat-lib/server/functions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export { sendMessage } from './sendMessage';
export { setEmail } from './setEmail';
export { setRealName, _setRealName } from './setRealName';
export { setUserAvatar } from './setUserAvatar';
export { setUsername } from './setUsername';
export { _setUsername, setUsername } from './setUsername';
export { unarchiveRoom } from './unarchiveRoom';
export { updateMessage } from './updateMessage';
export { validateCustomFields } from './validateCustomFields';
Expand Down
2 changes: 1 addition & 1 deletion packages/rocketchat-lib/server/functions/setUsername.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { hasPermission } from 'meteor/rocketchat:authorization';
import { RateLimiter } from '../lib';
import { checkUsernameAvailability, setUserAvatar, getAvatarSuggestionForUser } from '.';

const _setUsername = function(userId, u) {
export const _setUsername = function(userId, u) {
const username = s.trim(u);
if (!userId || !username) {
return false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { ReactiveVar } from 'meteor/reactive-var';
import { Template } from 'meteor/templating';
import { TAPi18n } from 'meteor/tap:i18n';
import { t, handleError } from 'meteor/rocketchat:utils';
import { ChatRoom } from 'meteor/rocketchat:ui-utils';
import { ChatRoom } from 'meteor/rocketchat:models';
import toastr from 'toastr';

Template.channelSettings__tokenpass.helpers({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import { Tracker } from 'meteor/tracker';
import { TAPi18n } from 'meteor/tap:i18n';
import { Template } from 'meteor/templating';
import { fileUploadHandler } from 'meteor/rocketchat:file-upload';
import { RoomManager, AudioRecorder, chatMessages } from 'meteor/rocketchat:ui';
import { AudioRecorder, chatMessages } from 'meteor/rocketchat:ui';
import { RoomManager } from 'meteor/rocketchat:ui-utils';
import _ from 'underscore';
import './messageBoxAudioMessage.html';

Expand Down

0 comments on commit 5ec74ad

Please sign in to comment.