Skip to content
This repository has been archived by the owner on Dec 10, 2021. It is now read-only.

Commit

Permalink
fix(server): fix print
Browse files Browse the repository at this point in the history
  • Loading branch information
iamcco committed Nov 10, 2021
1 parent a6a2c9c commit 9769768
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hello-dt",
"version": "1.2.6",
"version": "1.2.7",
"main": "index.js",
"repository": "git@github.com:iamcco/hello-dt.git",
"author": "iamcco <ooiss@qq.com>",
Expand Down
3 changes: 1 addition & 2 deletions server/src/http/actions.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { exec } from 'child_process';
import { createWriteStream, readFileSync, renameSync, unlinkSync } from 'fs';
import { createWriteStream, readFileSync, renameSync } from 'fs';
import { IncomingMessage, ServerResponse } from 'http';
import multiparty from 'multiparty';

Expand Down Expand Up @@ -131,7 +131,6 @@ use((_req, res, next) => (params) => {
exec(
`lp -d devterm_printer -o media=Custom.${params.fields.size[0]}mm -o scaling=100 -o print-quality=5 ${target}`,
);
unlinkSync(target);
return res.end();
}
next(params);
Expand Down

0 comments on commit 9769768

Please sign in to comment.