Skip to content

Commit

Permalink
🐞fix: restore issues
Browse files Browse the repository at this point in the history
  • Loading branch information
blinko-space committed Oct 27, 2024
1 parent f440fae commit 8f5e10f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
File renamed without changes.
3 changes: 0 additions & 3 deletions src/pages/settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ const Page = observer(() => {
<PerferSetting />
<TaskSetting />
<ImportSetting />
{/* <Button onClick={e => {
PromiseCall(api.task.restoreDB.query({ filePath: ".blinko/files/blinko_export.bko" }))
}}>Import db</Button> */}
</div >
</>
});
Expand Down
2 changes: 1 addition & 1 deletion src/server/plugins/jobs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const Resotredb = async (filePath) => {
if (!exists) {
throw new Error("Your db file can not find restore file")
}
const { stdout, stderr } = await $`pg_restore --dbname=${process.env.DATABASE_URL!} .blinko/pgdump/bak.sql}`;
const { stdout, stderr } = await $`pg_restore --dbname=${process.env.DATABASE_URL!} .blinko/pgdump/bak.sql`;
if (stderr) {
throw new Error(stderr)
}
Expand Down

0 comments on commit 8f5e10f

Please sign in to comment.