Skip to content

Commit

Permalink
Renamed server
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaboCode committed May 11, 2020
1 parent 6c70669 commit 8445a3a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion client/src/components/Floaters/Selector/Selector.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import './selector.css'
class Selector extends Floater {

save = async () => {
await this.state.value && axios.post('https://heroku-super.herokuapp.com/teacher/updateRegisterOnIndex', {
await this.state.value && axios.post('https://kaerdos-st-server.herokuapp.com/teacher/updateRegisterOnIndex', {
teacher: this.props.data.teacher,
student: this.state.pos.row, //
reg: this.state.pos.col, //
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/Table/HeaderRow.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class HeaderRow extends Component {

newRegister = async reg => {
console.log(this.props.data.reg)
await axios.post('https://heroku-super.herokuapp.com/teacher/addNewGroupRegister', {
await axios.post('https://kaerdos-st-server.herokuapp.com/teacher/addNewGroupRegister', {
key: this.props.data.teacher,
group: this.props.data.group,
group_length: this.props.data.group_length,
Expand Down
8 changes: 4 additions & 4 deletions client/src/pages/Classroom.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,20 @@ class Classroom extends Component {
}

async updateGroup(group) {
const students = await axios.post('https://heroku-super.herokuapp.com/group/getStudentsByName', {name: group})
const tabs = await axios.post('https://heroku-super.herokuapp.com/teacher/getTabs', {key: this.key, group: group})
const students = await axios.post('https://kaerdos-st-server.herokuapp.com/group/getStudentsByName', {name: group})
const tabs = await axios.post('https://kaerdos-st-server.herokuapp.com/teacher/getTabs', {key: this.key, group: group})
let sup_regs
try {
sup_regs = await axios
.post('https://heroku-super.herokuapp.com/teacher/getGroupRegisters', {
.post('https://kaerdos-st-server.herokuapp.com/teacher/getGroupRegisters', {
key: this.key,
group: group,
reg: this.tabs.current.state.actualTab
})
}
catch(TypeError) {
sup_regs = await axios
.post('https://heroku-super.herokuapp.com/teacher/getGroupRegisters', {
.post('https://kaerdos-st-server.herokuapp.com/teacher/getGroupRegisters', {
key: this.key,
group: group,
reg: tabs.data[0]
Expand Down
2 changes: 1 addition & 1 deletion client/src/pages/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Home extends Component {
async handleClick(e) {
e.preventDefault()
const response = await axios.post(
"https://heroku-super.herokuapp.com/teacher/getGroups",
"https://kaerdos-st-server.herokuapp.com/teacher/getGroups",
{ key: this.state.key }
);
console.log(this.state.key)
Expand Down

0 comments on commit 8445a3a

Please sign in to comment.