Skip to content

Commit

Permalink
fix: Use serializeQueryString in base-ws (#693)
Browse files Browse the repository at this point in the history
  • Loading branch information
neet committed Nov 23, 2022
1 parent b50ac7f commit fc6a00d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ws/base-ws.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import semver from 'semver';

import type { MastoConfig } from '../config';
import type { Serializer } from '../serializers';
import { railsQueryString } from '../serializers/rails-querystring';
import type { Ws, WsEvents } from './ws';

export abstract class BaseWs implements Ws {
Expand Down Expand Up @@ -31,7 +30,7 @@ export abstract class BaseWs implements Ws {
if (!this.supportsSecureToken()) {
params.accessToken = this.config.accessToken;
}
const query = railsQueryString.stringify(params);
const query = this.serializer.serializeQueryString(params);

return this.baseUrl + path + (query !== '' ? `?${query}` : '');
}
Expand Down

0 comments on commit fc6a00d

Please sign in to comment.