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