Skip to content

Commit

Permalink
🐛 fix: missing protocol while calling room creation API (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
rezk2ll authored Jan 10, 2025
1 parent 416c044 commit 6210257
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/tom-server/src/invitation-api/services/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export default class InvitationService implements IInvitationService {
): Promise<string> => {
try {
const response = await fetch(
`${this.config.matrix_server}${this.MATRIX_ROOM_PATH}`,
`https://${this.config.matrix_server}${this.MATRIX_ROOM_PATH}`,
{
method: 'POST',
headers: {
Expand Down Expand Up @@ -261,7 +261,7 @@ export default class InvitationService implements IInvitationService {
room_id: string
) => {
try {
await fetch(`${this.config.matrix_server}/${this.MATRIX_INVITE_PATH}`, {
await fetch(`https://${this.config.matrix_server}/${this.MATRIX_INVITE_PATH}`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ describe('the Invitation API service', () => {
dbMock as unknown as TwakeDB,
loggerMock as unknown as TwakeLogger,
{
matrix_server: 'http://localhost:789',
matrix_server: 'localhost',
base_url: 'http://localhost'
} as unknown as Config
)
Expand Down

0 comments on commit 6210257

Please sign in to comment.