fix: update dependencies to latest

This commit is contained in:
Divlo
2023-01-11 17:39:09 +01:00
parent b5089f7f0b
commit cd1a477324
31 changed files with 1243 additions and 17860 deletions

View File

@ -62,8 +62,8 @@ const ChannelPage: NextPage<ChannelPageProps> = (props) => {
export const getServerSideProps = authenticationFromServerSide({
shouldBeAuthenticated: true,
fetchData: async (context, api) => {
const channelId = Number(context?.params?.channelId)
const guildId = Number(context?.params?.guildId)
const channelId = Number(context?.params?.['channelId'])
const guildId = Number(context?.params?.['guildId'])
if (isNaN(channelId) || isNaN(guildId)) {
return {
notFound: true

View File

@ -57,8 +57,8 @@ const ChannelSettingsPage: NextPage<ChannelSettingsPageProps> = (props) => {
export const getServerSideProps = authenticationFromServerSide({
shouldBeAuthenticated: true,
fetchData: async (context, api) => {
const channelId = Number(context?.params?.channelId)
const guildId = Number(context?.params?.guildId)
const channelId = Number(context?.params?.['channelId'])
const guildId = Number(context?.params?.['guildId'])
if (isNaN(channelId) || isNaN(guildId)) {
return {
notFound: true

View File

@ -44,7 +44,7 @@ const CreateChannelPage: NextPage<CreateChannelPageProps> = (props) => {
export const getServerSideProps = authenticationFromServerSide({
shouldBeAuthenticated: true,
fetchData: async (context, api) => {
const guildId = Number(context?.params?.guildId)
const guildId = Number(context?.params?.['guildId'])
if (isNaN(guildId)) {
return {
notFound: true

View File

@ -41,7 +41,7 @@ const GuildSettingsPage: NextPage<GuildSettingsPageProps> = (props) => {
export const getServerSideProps = authenticationFromServerSide({
shouldBeAuthenticated: true,
fetchData: async (context, api) => {
const guildId = Number(context?.params?.guildId)
const guildId = Number(context?.params?.['guildId'])
if (isNaN(guildId)) {
return {
notFound: true

View File

@ -35,7 +35,7 @@ const UserProfilePage: NextPage<UserProfilePageProps> = (props) => {
export const getServerSideProps = authenticationFromServerSide({
shouldBeAuthenticated: true,
fetchData: async (context, api) => {
const userId = Number(context?.params?.userId)
const userId = Number(context?.params?.['userId'])
if (isNaN(userId)) {
return {
notFound: true

View File

@ -35,7 +35,7 @@ const ResetPassword: NextPage<FooterProps> = (props) => {
try {
await api.put(`/users/reset-password`, {
...formData,
temporaryToken: router.query.temporaryToken
temporaryToken: router.query['temporaryToken']
})
await router.push('/authentication/signin')
return null