Update api.js
This commit is contained in:
parent
04958553f1
commit
2cf940e0b9
@ -108,7 +108,7 @@ const urlsConfig = {
|
|||||||
addServiceRecord: 'addServiceRecord',
|
addServiceRecord: 'addServiceRecord',
|
||||||
updateServiceRecord: 'updateServiceRecord',
|
updateServiceRecord: 'updateServiceRecord',
|
||||||
removeServiceRecord: 'removeServiceRecord',
|
removeServiceRecord: 'removeServiceRecord',
|
||||||
sendConsultRejectedMessage: "sendConsultRejectedMessage"
|
// sendConsultRejectedMessage: "sendConsultRejectedMessage"
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -118,7 +118,7 @@ const urls = Object.keys(urlsConfig).reduce((acc, path) => {
|
|||||||
keys.forEach((key) => {
|
keys.forEach((key) => {
|
||||||
const data = acc[key];
|
const data = acc[key];
|
||||||
if (data) {
|
if (data) {
|
||||||
throw new Error(`${data[0]}.${data[1]}和${path}.${url}重复了`)
|
throw new Error(`${data[0]}.${data[1]}和${path}.${key}重复了`)
|
||||||
}
|
}
|
||||||
acc[key] = [path, config[key]]
|
acc[key] = [path, config[key]]
|
||||||
return acc
|
return acc
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user