mirror of
https://github.com/nowcommunity/nowdatabase.git
synced 2026-10-12 19:13:52 +03:00
Make timeboundreducer accept id as also number
This commit is contained in:
@@ -8,12 +8,12 @@ const timeboundsApi = api.injectEndpoints({
|
||||
url: `/time-bound/all`,
|
||||
}),
|
||||
}),
|
||||
getTimeBoundDetails: builder.query<TimeBoundDetailsType, string>({
|
||||
getTimeBoundDetails: builder.query<TimeBoundDetailsType, string | number>({
|
||||
query: id => ({
|
||||
url: `/time-bound/${id}`,
|
||||
}),
|
||||
}),
|
||||
getTimeBoundTimeUnits: builder.query<TimeUnit[], string>({
|
||||
getTimeBoundTimeUnits: builder.query<TimeUnit[], string | number>({
|
||||
query: id => ({
|
||||
url: `/time-bound/time-units/${id}`,
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user