Skip to content

Commit

Permalink
🐛 ロギングのバグを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
yuito-it committed Apr 27, 2024
1 parent 1acfd5d commit 08cb971
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,5 @@ module.exports = {
guildCreate: "1228574771856543835",
guildDelete: "1228574771856543835",
},
api: {
URI_base: process.env.URI_BASE,
},
URI_base: process.env.URI_BASE,
};
6 changes: 3 additions & 3 deletions function.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ exports.timeToJST = function (timestamp, format = false) {
const axios = require("axios");
const https = require("https");
exports.readLog = async (api_name) => {
const URI = `https://${URI_base}/${api_name}`;
const URI = `${URI_base}/${api_name}`;
try {
const response = await axios.get(URI);
const ret = JSON.stringify(response.data);
Expand All @@ -57,9 +57,9 @@ exports.readLog = async (api_name) => {
const http = require("http");

exports.loging = async (post_data, api_name) => {
const url = `${URI_base}/${api_name}`;
console.log("URI:", url);
try {
const url = `https://${URI_base}/${api_name}`;

const response = await axios.post(url, post_data);

console.log("Response:", response.data);
Expand Down

0 comments on commit 08cb971

Please sign in to comment.