-
-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(ci/cd): 202401111 #2814
fix(ci/cd): 202401111 #2814
Conversation
if (traceparent) { | ||
const parsedTraceparent = traceparent.split('-') | ||
console.assert( | ||
parsedTraceparent.length === 4, | ||
`traceparent value: ${traceparent}` | ||
) | ||
const [_, traceId, parentId] = parsedTraceparent | ||
const traceId = parsedTraceparent[1] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this a personal preference or a linter rule? The deconstructor syntax looks cleaner.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Linter warning
@@ -30,12 +31,14 @@ export const getAccountAvatarMethod: GetAccountAvatarMethod = async ({ | |||
throw new Error('missing address or type') | |||
} | |||
|
|||
if (!ctx.hashedIdref) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This check is already done in the middleware. Shouldn't be repeated here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Linter warning for !
@@ -64,7 +63,11 @@ export const getAccountProfileMethod: GetAccountProfileMethod = async ({ | |||
if (!nodeClient) | |||
throw new InternalServerError({ message: 'missing nodeClient' }) | |||
|
|||
return getProfile(ctx, nodeClient, ctx.accountURN!) | |||
if (!ctx.accountURN) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This check is already done in the middleware. Shouldn't be repeated here.
@@ -119,7 +122,12 @@ async function getProfile( | |||
case OAuthAccountType.Google: | |||
return new GoogleAccount(node, ctx.env) | |||
case OAuthAccountType.Microsoft: | |||
return new MicrosoftAccount(node, ctx.hashedIdref!, ctx.env) | |||
if (!ctx.hashedIdref) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This check is already done in the middleware. Shouldn't be repeated here.
@@ -37,6 +37,11 @@ export const acceptIdentityGroupMemberInvitation = async ({ | |||
message: 'Identity group DO not found', | |||
}) | |||
} | |||
if (!ctx.identityURN) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This check is already done in the middleware. Shouldn't be repeated here.
3968d0c
to
2f94f59
Compare
Left only the error fix. |
Description
Various fixes for the error / warnings in our ci/cd pipeline
Checklist