Skip to content

Commit ee17fc6

Browse files
JanRJanR
authored andcommitted
refactor: let alternative server decide its own CV document path
Use this.alternativeServer.isAppMode instead of this.isAppMode for consistency with how other methods delegate to the alternative server. Not a bug — both always share the same mode — but removes an implicit coupling.
1 parent eec34c1 commit ee17fc6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ export class Server {
688688
// 2. If the primary server fails to scan the cv document the alternative server will also very likely fail.
689689
if (this.alternativeServer) {
690690
await this.alternativeServer
691-
.fetch(this.isAppMode ? "/api/private/scraper/scan-cv-document" : "/api/v1/scraper/scanCVDocument", {
691+
.fetch(this.alternativeServer.isAppMode ? "/api/private/scraper/scan-cv-document" : "/api/v1/scraper/scanCVDocument", {
692692
body,
693693
method: "POST",
694694
})

0 commit comments

Comments
 (0)