Skip to content

Commit

Permalink
fix some .env mismatches
Browse files Browse the repository at this point in the history
  • Loading branch information
sean-kintone committed Jul 18, 2024
1 parent 661810f commit 5f4d4a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/requests/aiSummaryRequest.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const domain = import.meta.env.VITE_KINTONE_BASE_URL; // our URL
const domain = import.meta.env.VITE_KINTONE_SUBDOMAIN; // our URL
const openAIToken = import.meta.env.VITE_OPEN_AI_TOKEN; // Our Open AI API token
const kintoneToken = import.meta.env.VITE_KINTONE_PART_ONE_TOKEN; // Kintone API Token
const appID = import.meta.env.VITE_KINTONE_PART_ONE_APPID; // Kintone App ID
Expand Down Expand Up @@ -37,7 +37,7 @@ export default async function generateSummary() {
}

const getAttachment = async (fileKey) => {
const url = `${domain}/k/v1/file.json?fileKey=${fileKey}`;
const url = `https://${domain}.kintone.com/k/v1/file.json?fileKey=${fileKey}`;
try {
const response = await fetch(url, {
method: 'GET',
Expand Down
4 changes: 2 additions & 2 deletions src/requests/aiSummaryRequestPortal.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const domain = import.meta.env.VITE_KINTONE_BASE_URL; // our URL
const domain = import.meta.env.VITE_KINTONE_SUBDOMAIN; // our URL
const openAIToken = import.meta.env.VITE_OPEN_AI_TOKEN; // Our Open AI API token
const kintoneToken = import.meta.env.VITE_KINTONE_PORTAL_TOKEN; // Kintone API Token
const appID = import.meta.env.VITE_KINTONE_PORTAL_APPID; // Kintone App ID
Expand Down Expand Up @@ -37,7 +37,7 @@ export default async function generateSummaryPortal() {
}

const getAttachment = async (fileKey) => {
const url = `${domain}/k/v1/file.json?fileKey=${fileKey}`;
const url = `https://${domain}.kintone.com/k/v1/file.json?fileKey=${fileKey}`;
try {
const response = await fetch(url, {
method: 'GET',
Expand Down

0 comments on commit 5f4d4a7

Please sign in to comment.