Skip to content

Commit 16132f4

Browse files
author
Vikas Agarwal
committed
reading messages from database after incorporation of elastic search in message api.
1 parent 4c07a39 commit 16132f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/api/messages.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export function getTopics(criteria) {
1515
params.filter = filterStr.join('&')
1616
}
1717

18-
return axios.get(`${apiBaseUrl}/topics/list`, { params })
18+
return axios.get(`${apiBaseUrl}/topics/list/db`, { params })
1919
.then( resp => {
2020
return {
2121
totalCount: _.get(resp.data, 'result.metadata.totalCount', 0),
@@ -25,7 +25,7 @@ export function getTopics(criteria) {
2525
}
2626

2727
export function getTopic(topicId) {
28-
return axios.get(`${apiBaseUrl}/topics/${topicId}/read`)
28+
return axios.get(`${apiBaseUrl}/topics/${topicId}/read/db`)
2929
.then( resp => {
3030
return {
3131
totalCount: _.get(resp.data, 'result.metadata.totalCount', 0),

0 commit comments

Comments
 (0)