Skip to content

Commit fff8fa4

Browse files
committed
support the by-references route
1 parent 9a0d21c commit fff8fa4

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

lib/server.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -773,6 +773,21 @@ export class Server {
773773
}
774774
}
775775

776+
public async cvVisits(
777+
referenceNrs: string[],
778+
): Promise<Record<string, VisitedCv>> {
779+
if (referenceNrs.length === 0) return {}
780+
return await this.fetch(
781+
this.isAppMode
782+
? "/api/private/scraper/visited-cvs/by-references"
783+
: "/api/v1/visitedCvs/byReferences",
784+
{
785+
method: "POST",
786+
body: referenceNrs,
787+
},
788+
)
789+
}
790+
776791
// Send a message to the error channel within the Script / Backtocode slack.
777792
// Only visible for us developers.. hence internal.
778793
public get internalSlack(): Slack {

0 commit comments

Comments
 (0)