fix: update dependencies to latest + fix upload of files
This commit is contained in:
@ -64,7 +64,7 @@ export const getServerSideProps = authenticationFromServerSide({
|
||||
fetchData: async (context, api) => {
|
||||
const channelId = Number(context?.params?.['channelId'])
|
||||
const guildId = Number(context?.params?.['guildId'])
|
||||
if (isNaN(channelId) || isNaN(guildId)) {
|
||||
if (Number.isNaN(channelId) || Number.isNaN(guildId)) {
|
||||
return {
|
||||
notFound: true
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ export const getServerSideProps = authenticationFromServerSide({
|
||||
fetchData: async (context, api) => {
|
||||
const channelId = Number(context?.params?.['channelId'])
|
||||
const guildId = Number(context?.params?.['guildId'])
|
||||
if (isNaN(channelId) || isNaN(guildId)) {
|
||||
if (Number.isNaN(channelId) || Number.isNaN(guildId)) {
|
||||
return {
|
||||
notFound: true
|
||||
}
|
||||
|
@ -45,7 +45,7 @@ export const getServerSideProps = authenticationFromServerSide({
|
||||
shouldBeAuthenticated: true,
|
||||
fetchData: async (context, api) => {
|
||||
const guildId = Number(context?.params?.['guildId'])
|
||||
if (isNaN(guildId)) {
|
||||
if (Number.isNaN(guildId)) {
|
||||
return {
|
||||
notFound: true
|
||||
}
|
||||
|
@ -42,7 +42,7 @@ export const getServerSideProps = authenticationFromServerSide({
|
||||
shouldBeAuthenticated: true,
|
||||
fetchData: async (context, api) => {
|
||||
const guildId = Number(context?.params?.['guildId'])
|
||||
if (isNaN(guildId)) {
|
||||
if (Number.isNaN(guildId)) {
|
||||
return {
|
||||
notFound: true
|
||||
}
|
||||
|
@ -36,7 +36,7 @@ export const getServerSideProps = authenticationFromServerSide({
|
||||
shouldBeAuthenticated: true,
|
||||
fetchData: async (context, api) => {
|
||||
const userId = Number(context?.params?.['userId'])
|
||||
if (isNaN(userId)) {
|
||||
if (Number.isNaN(userId)) {
|
||||
return {
|
||||
notFound: true
|
||||
}
|
||||
|
Reference in New Issue
Block a user