Skip to content

Commit 9a3a214

Browse files
authored
chore: change paths (#941)
1 parent aef26d4 commit 9a3a214

38 files changed

Lines changed: 38 additions & 38 deletions

File tree

platforms/blabsy/api/src/controllers/WebhookController.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ type Message = {
6868
isSystemMessage?: boolean; // Flag for system messages
6969
};
7070

71-
dotenv.config({ path: path.resolve(__dirname, "../../../../.env") });
71+
dotenv.config({ path: path.resolve(__dirname, "../../../../../.env") });
7272

7373
export const adapter = new Web3Adapter({
7474
schemasPath: path.resolve(__dirname, "../web3adapter/mappings/"),

platforms/blabsy/api/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import * as fs from "fs";
99
import { Web3Adapter } from "./web3adapter";
1010
import { WebhookController, adapter } from "./controllers/WebhookController";
1111

12-
config({ path: path.resolve(__dirname, "../../../.env") });
12+
config({ path: path.resolve(__dirname, "../../../../.env") });
1313

1414
const app = express();
1515
const port = process.env.PORT || 3000;

platforms/blabsy/api/src/web3adapter/watchers/firestoreWatcher.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { getFirestore } from "firebase-admin/firestore";
99
import path from "path";
1010
import dotenv from "dotenv";
1111
import { adapter } from "../../controllers/WebhookController";
12-
dotenv.config({ path: path.resolve(__dirname, "../../../../../.env") });
12+
dotenv.config({ path: path.resolve(__dirname, "../../../../../../.env") });
1313

1414
export class FirestoreWatcher {
1515
private unsubscribe: (() => void) | null = null;

platforms/calendar/client/next.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { readFileSync, existsSync } from "fs";
44

55
// Read NEXT_PUBLIC_CALENDAR_API_URL from monorepo root .env so client bundle gets it (Next loads project .env first, so process.env can be wrong)
66
function getRootEnv(name: string): string | undefined {
7-
const rootEnv = path.resolve(__dirname, "../../.env");
7+
const rootEnv = path.resolve(__dirname, "../../../.env");
88
if (!existsSync(rootEnv)) return undefined;
99
const content = readFileSync(rootEnv, "utf-8");
1010
const match = new RegExp(`^${name}\\s*=\\s*(.+)$`, "m").exec(content);

platforms/cerberus/client/src/database/data-source.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { VotingObservation } from "./entities/VotingObservation";
1111
import { CharterSignature } from "./entities/CharterSignature";
1212
import { Reference } from "./entities/Reference";
1313

14-
config({ path: path.resolve(__dirname, "../../../../.env") });
14+
config({ path: path.resolve(__dirname, "../../../../../.env") });
1515

1616
export const AppDataSource = new DataSource({
1717
type: "postgres",

platforms/cerberus/client/src/web3adapter/watchers/subscriber.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import path from "path";
1111
import dotenv from "dotenv";
1212
import { AppDataSource } from "../../database/data-source";
1313

14-
dotenv.config({ path: path.resolve(__dirname, "../../../../../.env") });
14+
dotenv.config({ path: path.resolve(__dirname, "../../../../../../.env") });
1515
export const adapter = new Web3Adapter({
1616
schemasPath: path.resolve(__dirname, "../mappings/"),
1717
dbPath: path.resolve(process.env.CERBERUS_MAPPING_DB_PATH as string),

platforms/dreamsync/api/scripts/migrate-summaries.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { WishlistSummaryService } from "../src/services/WishlistSummaryService";
66
import { Wishlist } from "../src/database/entities/Wishlist";
77

88
// Load environment variables
9-
config({ path: path.resolve(__dirname, "../../../.env") });
9+
config({ path: path.resolve(__dirname, "../../../../.env") });
1010

1111
async function migrateSummaries() {
1212
console.log("Starting migration: Converting text summaries to AI-generated arrays...\n");

platforms/dreamsync/api/src/database/data-source.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { ProfessionalProfile } from "./entities/ProfessionalProfile";
1313
import { PostgresSubscriber } from "../web3adapter/watchers/subscriber";
1414

1515
// Use absolute path for better CLI compatibility
16-
const envPath = path.resolve(__dirname, "../../../../.env");
16+
const envPath = path.resolve(__dirname, "../../../../../.env");
1717
config({ path: envPath });
1818

1919

platforms/dreamsync/api/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { MatchingJob } from "./services/MatchingJob";
1616
import { PlatformEVaultService } from "./services/PlatformEVaultService";
1717
import { WishlistSummaryService } from "./services/WishlistSummaryService";
1818

19-
config({ path: path.resolve(__dirname, "../../../.env") });
19+
config({ path: path.resolve(__dirname, "../../../../.env") });
2020

2121
const app = express();
2222
const port = process.env.PORT || 4001;

platforms/dreamsync/api/src/web3adapter/watchers/subscriber.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import dotenv from "dotenv";
1212
import { AppDataSource } from "../../database/data-source";
1313
import { shouldProcessWebhook } from "../../context/OperationContext";
1414

15-
dotenv.config({ path: path.resolve(__dirname, "../../../../../.env") });
15+
dotenv.config({ path: path.resolve(__dirname, "../../../../../../.env") });
1616
export const adapter = new Web3Adapter({
1717
schemasPath: path.resolve(__dirname, "../mappings/"),
1818
dbPath: path.resolve(process.env.DREAMSYNC_MAPPING_DB_PATH as string),

0 commit comments

Comments
 (0)