Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.

Conversation

@noahingh
Copy link
Member

No description provided.

@noahingh noahingh added the bug Something isn't working label Nov 22, 2021
Comment on lines -14 to -17
if err.(*e.Error).Code == e.ErrorCodeInternalError {
return zapcore.ErrorLevel
}

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The type conversion occurs when the error has a wrapping error which type is e.Error.

UpdateOne(r).
SetActive(false).
SetWebhookID(0).
SetOwnerID(0).
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Setting the undefined user occurs the constraint validation error because the owner_id is the foreign key.

@noahingh noahingh linked an issue Nov 22, 2021 that may be closed by this pull request
@noahingh noahingh merged commit 63800a4 into main Nov 22, 2021
@noahingh noahingh deleted the fix-deactivation-bug branch November 22, 2021 10:24
@noahingh noahingh added this to the v0.4 milestone Nov 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Failure of the deactivation

2 participants