forward progress

This commit is contained in:
Luke Berndt
2023-01-02 21:09:56 -05:00
parent 2afbe72533
commit 5a05ab509c
3 changed files with 8 additions and 3 deletions

View File

@@ -131,6 +131,10 @@ yarn start
This should build the frontend and open a browser. In order to have all the cookies work correctly, you have to use the same domain name. Make sure you have setup the local domains as described above. Then goto the base domain, for me that is openmhz.test, at port 3000 `openmhz.test:3000`
## Upgrading a "Frontend" server
https://create-react-app.dev/docs/updating-to-new-releases/
## Managing MongoDB

View File

@@ -31,7 +31,7 @@ export const Groups = (args) => {
export const Calls = (args) => {
const { data, isError, isLoading, isSuccess,error } = useGetCallsQuery(args.shortName);
const { data, isError, isLoading, isSuccess,error } = useGetCallsQuery({shortName: args.shortName});
let content

View File

@@ -27,9 +27,10 @@ export const apiSlice = createApi({
}),
getCalls: builder.query({
// The URL for the request is '/fakeApi/posts'
query: (shortName) => ({
query: ({shortName,filterType=0,filterCode=0}) => ({
url: `/${shortName}/calls`,
method: "GET" //, params: { filterType, filterCode },
method: "GET",
params: { filterType, filterCode },
})
})
})