Skip to content

Commit

Permalink
refactor: Update import paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmedhossamdev committed Aug 22, 2024
1 parent e6218eb commit 5a5d525
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/lib/RestAPI/arrivalsAndDeparturesForStop.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { json } from '@sveltejs/kit';
import { error, json } from '@sveltejs/kit';
import oba from '../obaSdk';

export default async function arrivalsAndDeparturesForStop(stopID) {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/RestAPI/shape.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import oba from '../obaSdk';
import { json } from '@sveltejs/kit';
import { error, json } from '@sveltejs/kit';
export default async function shape(shapeId) {
const response = await oba.shape.retrieve(shapeId);

Expand Down
2 changes: 1 addition & 1 deletion src/lib/RestAPI/stop.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import oba from '../obaSdk';
import { json } from '@sveltejs/kit';
import { error, json } from '@sveltejs/kit';
export default async function stop(stopID) {
const response = await oba.stop.retrieve(stopID);
if (response.code !== 200) {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/RestAPI/stops-for-location.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import oba from '../obaSdk';
import { json } from '@sveltejs/kit';
import { error, json } from '@sveltejs/kit';
export default async function stopsForLocation(queryParams) {
const response = await oba.stopsForLocation.list(queryParams);

Expand Down
2 changes: 1 addition & 1 deletion src/lib/RestAPI/tripDetails.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import oba from '../obaSdk';
import { json } from '@sveltejs/kit';
import { error, json } from '@sveltejs/kit';
export default async function tripDetails(tripID, queryParams) {
const response = await oba.tripDetails.retrieve(tripID, queryParams);
if (response.code !== 200) {
Expand Down

0 comments on commit 5a5d525

Please sign in to comment.