Skip to content

Commit

Permalink
feat : update services/prediction.service.js (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
JungYeonHwi committed Oct 23, 2023
1 parent f58a461 commit b8e4795
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions services/prediction.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {predictionApi} from "api"

const getDailyItem = async(id) => {
try {
const data = await statisticsApi.getWeekItem(id);
const data = await predictionApi.getWeekItem(id);
return data;
} catch (error) {
throw error;
Expand All @@ -11,7 +11,7 @@ const getDailyItem = async(id) => {

const getDailyItemTomorrow = async(id) => {
try {
const data = await statisticsApi.getWeekItem(id);
const data = await predictionApi.getDailyItemTomorrow(id);
return data;
} catch (error) {
throw error;
Expand All @@ -20,7 +20,7 @@ const getDailyItemTomorrow = async(id) => {

const getProfit = async(id) => {
try {
const data = await statisticsApi.getWeekItem(id);
const data = await predictionApi.getProfit(id);
return data;
} catch (error) {
throw error;
Expand All @@ -29,7 +29,7 @@ const getProfit = async(id) => {

const getProfitTomorrow = async(id) => {
try {
const data = await statisticsApi.getWeekItem(id);
const data = await predictionApi.getProfitTomorrow(id);
return data;
} catch (error) {
throw error;
Expand Down

0 comments on commit b8e4795

Please sign in to comment.