Skip to content

Commit

Permalink
fix(backend): Build vitnode-backend package
Browse files Browse the repository at this point in the history
  • Loading branch information
aXenDeveloper committed Jun 21, 2024
1 parent 9e3f1b9 commit 4746d0e
Show file tree
Hide file tree
Showing 13 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion packages/backend/scripts/init.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,15 @@ const copyDatabaseSchema = corePluginPath => {
const currentPathToSchema = path.join(
__dirname,
"..",
"src",
"templates",
"core",
"admin",
"database"
);
if (!fs.existsSync(currentPathToSchema)) {
throw new Error(
"Database schema not found in 'templates/core/admin/database' directory."
`Database schema not found in 'templates/core/admin/database' directory. "${currentPathToSchema}"`
);
}

Expand Down
2 changes: 1 addition & 1 deletion packages/backend/src/database/database.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { NodePgDatabase } from "drizzle-orm/node-postgres";
import { DatabaseModuleArgs } from "./database.module";
import { createClientDatabase } from "./client";

import coreSchemaDatabase from "@/../templates/core/admin/database";
import coreSchemaDatabase from "@/templates/core/admin/database";

@Injectable()
export class DatabaseService {
Expand Down
2 changes: 1 addition & 1 deletion packages/backend/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
"@/*": ["./src/*"]
}
},
"include": ["src/**/*", "scripts"]
"include": ["src/**/*"]
}

0 comments on commit 4746d0e

Please sign in to comment.