mirror of
https://github.com/byulmaru/quesdon
synced 2024-11-27 14:28:04 +09:00
remove console.log
This commit is contained in:
parent
82af9d23cf
commit
586acab01e
@ -57,7 +57,6 @@ router.post("/get_url", async (ctx) => {
|
||||
method: "POST",
|
||||
data: {},
|
||||
}).then((r) => r.text()).then((r) => QueryStringUtils.decode(r))
|
||||
console.log(requestTokenRes)
|
||||
const requestToken = {
|
||||
token: requestTokenRes.oauth_token,
|
||||
secret: requestTokenRes.oauth_token_secret,
|
||||
@ -71,7 +70,6 @@ router.post("/get_url", async (ctx) => {
|
||||
})
|
||||
|
||||
router.get("/redirect", async (ctx) => {
|
||||
console.log(ctx.session)
|
||||
var profile: {
|
||||
id: string
|
||||
name: string
|
||||
@ -104,11 +102,9 @@ router.get("/redirect", async (ctx) => {
|
||||
}),
|
||||
headers: {"Content-Type": "application/json"},
|
||||
}).then((r) => r.json())
|
||||
console.log(res)
|
||||
const myProfile = await fetch("https://" + app.hostName + "/api/v1/accounts/verify_credentials", {
|
||||
headers: {Authorization: "Bearer " + res.access_token},
|
||||
}).then((r) => r.json())
|
||||
console.log(myProfile)
|
||||
profile = {
|
||||
id: myProfile.id,
|
||||
name: myProfile.display_name || myProfile.username,
|
||||
|
@ -16,7 +16,6 @@ router.get("/", async (ctx) => {
|
||||
answeredAt: null,
|
||||
isDeleted: {$ne: true},
|
||||
})
|
||||
console.log(questions)
|
||||
ctx.body = JSON.stringify(questions)
|
||||
})
|
||||
|
||||
@ -95,7 +94,6 @@ router.post("/:id/answer", async (ctx) => {
|
||||
const strA = cutText(question.answer!, 120 - strQ.length)
|
||||
const [key, secret] = user.accessToken.split(":")
|
||||
const body = "Q. " + strQ + "\nA. " + strA + "\n#quesdon " + answerUrl
|
||||
console.log(body, body.length)
|
||||
requestOAuth(twitterClient, {
|
||||
url: "https://api.twitter.com/1.1/statuses/update.json",
|
||||
method: "POST",
|
||||
|
Loading…
Reference in New Issue
Block a user