-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: Add an ability to delete personal account gf-146 #185
Conversation
} | ||
|
||
.divider { | ||
width: 800px; |
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.
Avoid strict width and height, use max-width
or min-width
.
@@ -2,6 +2,7 @@ const NotificationMessage = { | |||
PROJECT_CREATE_SUCCESS: "Project was successfully created", | |||
PROJECT_UPDATE_SUCCESS: "Project was successfully updated.", | |||
SUCCESS_PROFILE_UPDATE: "Successfully updated profile information.", | |||
SUCCESS_USER_DELETE: "User deleted successfully.", |
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.
I think we should agree how to name this messages, because they are written in different patterns here.
|
||
type ConfirmationModalProperties = { |
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.
It is better to follow the same code style and simply write Properties
.whereNull("deletedAt") | ||
.execute(); | ||
|
||
return numberDeletedRows > NOTHING_DELETED_COUNT; |
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.
return numberDeletedRows > NOTHING_DELETED_COUNT; | |
return Boolean(numberDeletedRows); |
public delete(): ReturnType<Repository["delete"]> { | ||
return Promise.resolve(true); | ||
public async delete(id: number): Promise<boolean> { | ||
const numberDeletedRows = await this.userModel |
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.
const numberDeletedRows = await this.userModel | |
const deletedRowsCount = await this.userModel |
Summary: