Skip to content

Commit

Permalink
cleanup init
Browse files Browse the repository at this point in the history
  • Loading branch information
prostgles committed Dec 14, 2023
1 parent 430f93a commit 91420cf
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 10 deletions.
1 change: 1 addition & 0 deletions lib/TableConfig/initTableConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -319,5 +319,6 @@ export const initTableConfig = async function (this: TableConfigurator<any>) {
console.error("Table config failed queries: ", failedQueries)
}

await this.prostgles.refreshDBO();
this.setTableOnMounts();
}
6 changes: 0 additions & 6 deletions lib/initProstgles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,6 @@ export const initProstgles = async function(this: Prostgles, onReady: OnReadyCal
await this.refreshDBO();
await this.initTableConfig(reason);
await this.initFileTable();

/* Create media table if required */
const now = Date.now();
await this.opts.onLog?.({ type: "debug", command: "initFileTable.start", duration: -1 });
await this.initFileTable();
await this.opts.onLog?.({ type: "debug", command: "initFileTable.end", duration: Date.now() - now });
await this.initRestApi();

if (this.opts.publish) {
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "prostgles-server",
"version": "4.1.150",
"version": "4.1.151",
"description": "",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion tests/server/package-lock.json

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

0 comments on commit 91420cf

Please sign in to comment.