-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #525 from bluewave-labs/add-allowed-hosts
Last changes before 1.0.0
- Loading branch information
Showing
11 changed files
with
28 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
const { where } = require("sequelize"); | ||
const settings = require("../../config/settings"); | ||
const db = require("../models"); | ||
const Team = db.Team; | ||
|
@@ -21,6 +20,20 @@ class TeamService { | |
} | ||
} | ||
|
||
async createTeamWithAgentUrl(name) { | ||
const transaction = await sequelize.transaction(); | ||
const agentUrl = 'https://cdn.jsdelivr.net/gh/bluewave-labs/[email protected]/jsAgent/' | ||
try { | ||
const team = await Team.create({ name, agentUrl }, { transaction }); | ||
await transaction.commit(); | ||
return team; | ||
} catch (err) { | ||
await transaction.rollback(); | ||
throw new Error("Failed to create team"); | ||
} | ||
} | ||
|
||
|
||
async getTeam() { | ||
try { | ||
const team = await Team.findOne({ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
frontend/src/components/Button/GoogleSignInButton/GoogleSignInButton.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...nd/src/templates/GuideMainPageTemplate/GuideMainPageComponents/List/ListItem/ListItem.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
// API constants | ||
//local environment | ||
export const API_BASE_URL = 'http://localhost:3000/api/'; | ||
export const BASE_URL = 'localhost:3000'; | ||
export const API_BASE_URL = `http://${BASE_URL}/api/`; | ||
|
||
//staging environment | ||
// export const API_BASE_URL = 'https://onboarding-demo.bluewavelabs.ca/api/'; | ||
// export const BASE_URL = 'onboarding-demo.bluewavelabs.ca'; | ||
// export const API_BASE_URL = `https://${BASE_URL}/api/`; | ||
// Other constants | ||
export const APP_TITLE = 'Bluewave Onboarding'; | ||
export const SUPPORT_EMAIL = '[email protected]'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters