test for deployment
This commit is contained in:
@@ -19,7 +19,7 @@ const TimeSelect: React.FC<TimeSelectProps> = ({
|
|||||||
}) => {
|
}) => {
|
||||||
const times = ['00:00'].concat(
|
const times = ['00:00'].concat(
|
||||||
Array.from({ length: 23 }, (_, h) =>
|
Array.from({ length: 23 }, (_, h) =>
|
||||||
[0, 15, 30, 45].map(
|
[0].map(
|
||||||
(m) =>
|
(m) =>
|
||||||
`${(h + 1).toString().padStart(2, '0')}:${m
|
`${(h + 1).toString().padStart(2, '0')}:${m
|
||||||
.toString()
|
.toString()
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import { redirect } from 'next/navigation';
|
|||||||
async function getSession(sessionId: string) {
|
async function getSession(sessionId: string) {
|
||||||
try {
|
try {
|
||||||
return (
|
return (
|
||||||
await axios.get(`http:/localhost:3000/api/session/?id=${sessionId}`)
|
await axios.get(`/api/session/?id=${sessionId}`)
|
||||||
).data.dashboard;
|
).data.dashboard;
|
||||||
} catch {
|
} catch {
|
||||||
redirect('/login');
|
redirect('/login');
|
||||||
|
|||||||
Reference in New Issue
Block a user