diff --git a/utils/Query.ts b/utils/Query.ts index 98128cf..1cc6c4a 100644 --- a/utils/Query.ts +++ b/utils/Query.ts @@ -206,7 +206,7 @@ async function assignToken(info: TokenRegister):Promise { } async function Authorization(token: string):Promise { - const tokenInfo = verify(token) + const tokenInfo = verify(token ?? '') const user = await knex('users').select(['id']).where({ id: tokenInfo?.id ?? '', token: token ?? '' }) if(user.length === 0) return false else return user[0].id @@ -293,6 +293,10 @@ export const update = { assignToken } +export const put = { + +} + export const ratelimit = { image: (ip: string) => { addRequest(ip, imageRateLimit)