From bee9330a0e4fc66c1046510544e5b3b848ce0754 Mon Sep 17 00:00:00 2001 From: Junseo Park Date: Wed, 17 Feb 2021 15:15:48 +0900 Subject: [PATCH] chore: added put --- utils/Query.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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)