Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chitalian committed Dec 17, 2024
1 parent e5bc360 commit cd65994
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion valhalla/jawn/src/managers/experiment/ExperimentV2Manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,14 @@ export class ExperimentV2Manager extends BaseManager {
const res = await supabaseServer.client
.from("prompt_input_record")
.select("*")
.eq("request_id", requestId)
.eq("source_request", requestId)
.single();

if (res.error || !res.data) {
return err("Failed to get prompt version from request");
}

return ok(res.data.prompt_version);
}

async hasAccessToExperiment(experimentId: string): Promise<boolean> {
Expand Down

0 comments on commit cd65994

Please sign in to comment.