feat: add search settings page in dashboard, sidebar menu, and MongoDB search integration
deploy-chabokan / deploy (push) Canceled after 0s
deploy-chabokan / deploy (push) Canceled after 0s
This commit is contained in:
@@ -168,9 +168,28 @@ export const TransactionService = {
|
||||
return response.data;
|
||||
} catch (err) {
|
||||
console.log(err);
|
||||
throw err;
|
||||
}
|
||||
},
|
||||
|
||||
searchTransactionsMongo: async (query) => {
|
||||
const config = {
|
||||
method: 'get',
|
||||
url: '/api/transactions/admin/search-mongo',
|
||||
withCredentials: true,
|
||||
params: query,
|
||||
headers: TransactionService._getAuthHeader()
|
||||
};
|
||||
try {
|
||||
const response = await axios(config);
|
||||
return response.data;
|
||||
} catch (err) {
|
||||
console.log(err);
|
||||
throw err;
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
indexTransactions: async () => {
|
||||
const config = {
|
||||
method: 'post',
|
||||
|
||||
Reference in New Issue
Block a user