Skip to content

Commit 3030df2

Browse files
committed
fix: signing url await
1 parent b023296 commit 3030df2

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/schema/opportunity.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1407,13 +1407,14 @@ export const resolvers: IResolvers<unknown, BaseContext> = traceResolvers<
14071407
},
14081408
UserCandidatePreference: {
14091409
cv: async (parent: UserCandidatePreference) => {
1410-
if (!parent?.cv?.blob) {
1411-
return parent?.cv;
1410+
const cv = await parent?.cv;
1411+
if (!cv?.blob) {
1412+
return cv;
14121413
}
14131414

1414-
const signedUrl = await generateResumeSignedUrl(parent.cv.blob);
1415+
const signedUrl = await generateResumeSignedUrl(cv.blob);
14151416
return {
1416-
...parent.cv,
1417+
...cv,
14171418
signedUrl,
14181419
};
14191420
},

0 commit comments

Comments
 (0)