Skip to content

Commit

Permalink
fixed breaking changes & updated backup commands
Browse files Browse the repository at this point in the history
  • Loading branch information
GhomKrosmonaute committed Oct 23, 2024
1 parent 210e394 commit 4c5dcef
Show file tree
Hide file tree
Showing 17 changed files with 207 additions and 172 deletions.
2 changes: 1 addition & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default [
}],

"import/no-unresolved": ["error", {
ignore: ["^#app$", "^#config$", "^#env$", "^#client$", "^#logger$", "^#database$"],
ignore: ["^#app$", "^#config$", "^#env$", "^#client$", "^#logger$", "^#database$", "^@ghom/orm$"],
}],

"@typescript-eslint/no-unused-vars": "warn",
Expand Down
149 changes: 100 additions & 49 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"@discordjs/rest": "^0.5.0",
"@ghom/handler": "^3.1.0",
"@ghom/logger": "^2.0.2",
"@ghom/orm": "^1.7.2",
"@ghom/orm": "^1.8.3",
"@ghom/web-scrapper": "^1.0.2",
"@prettier/plugin-php": "^0.22.2",
"@prettier/plugin-ruby": "^4.0.4",
Expand Down Expand Up @@ -84,8 +84,8 @@
"@types/vinyl-paths": "^0.0.31",
"@types/ws": "^8.5.3",
"@types/yargs-parser": "^21.0.0",
"@typescript-eslint/eslint-plugin": "^8.9.0",
"@typescript-eslint/parser": "^8.9.0",
"@typescript-eslint/eslint-plugin": "^8.11.0",
"@typescript-eslint/parser": "^8.11.0",
"del": "^6.1.1",
"discord-api-types": "^0.37.102",
"esbuild": "^0.24.0",
Expand Down
2 changes: 0 additions & 2 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export * from "./namespaces/middlewares.ts"
export * from "./namespaces/rating.ts"
export * from "./namespaces/point.ts"
export * from "./namespaces/fetcher.ts"
export * from "./namespaces/backup.ts"
export * from "./namespaces/automod.ts"
export * from "./namespaces/openai.ts"
export * from "./namespaces/emotes.ts"
Expand All @@ -30,7 +29,6 @@ export * as labs from "./namespaces/labs.ts"
export * as rating from "./namespaces/rating.ts"
export * as point from "./namespaces/point.ts"
export * as fetcher from "./namespaces/fetcher.ts"
export * as backup from "./namespaces/backup.ts"
export * as automod from "./namespaces/automod.ts"
export * as openai from "./namespaces/openai.ts"
export * as emotes from "./namespaces/emotes.ts"
Expand Down
5 changes: 4 additions & 1 deletion src/app/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ import path from "path"
setTypeParsers()

const client = new orm.ORM({
location: path.join(process.cwd(), "dist", "tables"),
tableLocation: path.join(process.cwd(), "dist", "tables"),
backups: {
location: path.join(process.cwd(), "data", "backups"),
},
database: {
client: "pg",
useNullAsDefault: true,
Expand Down
Loading

0 comments on commit 4c5dcef

Please sign in to comment.