feat: added updateBotApplication

This commit is contained in:
Junseo Park 2021-02-27 15:21:23 +09:00
parent 7ffa4d6d91
commit 46f64a7899

View File

@ -225,6 +225,11 @@ async function getBotSpec(id: string, userID: string) {
return serialize(res[0])
}
async function updateBotApplication(id: string, value: { webhook: string }) {
const res = await knex('bots').update({ webhook: value.webhook }).where({ id })
return
}
async function getImage(url: string) {
const res = await fetch(url)
if(!res.ok) return null
@ -337,7 +342,8 @@ export const get = {
}
export const update = {
assignToken
assignToken,
updateBotApplication
}
export const put = {