🧹 Removed the useless getPageCount method

This commit is contained in:
2021-10-06 14:10:44 -07:00
parent 5862d71c06
commit e61268f9ae
2 changed files with 7 additions and 30 deletions

View File

@@ -21,7 +21,6 @@ import {
} from "threetwo-ui-typings";
import {
extractCoverFromFile,
getPageCountFromRarArchive,
unrarArchive,
} from "../utils/uncompression.utils";
const ObjectId = require("mongoose").Types.ObjectId;
@@ -370,13 +369,6 @@ export default class ImportService extends Service {
return Promise.all(volumesMetadata);
},
},
getPageCountForComicBook: {
rest: "POST /getPageCountsForComicBook",
params: {},
async handler(ctx:Context<{filePath: string}>) {
return await getPageCountFromRarArchive(ctx.params.filePath);
}
},
unrarArchive: {
rest: "POST /unrarArchive",
params: {},