Skip to content
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

Developer #233

Merged
merged 4 commits into from
Mar 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions backend-manager-student/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,7 @@ module.exports = {
'no-promise-executor-return': 'off',
// eslint-disable-next-line no-dupe-keys
'no-unused-expressions': 'off',
'eslint-disable-next-line implicit-arrow-linebreak': 'off',
'eslint-disable object-curly-newline': 'off',
'brace-style': ['error', '1tbs', { allowSingleLine: true }],
'object-curly-newline': 'off',
'implicit-arrow-linebreak': 'off',
'object-curly-newline': 'off',
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ const StudentController = {
),
);
if (result) {
// Create key redis profile
// Create key redis profile
const key_student_id = HELPER.getURIFromTemplate(CONSTANTS.KEY_PROFILE_STUDENT, {
user_id: student_id,
});
Expand Down Expand Up @@ -255,6 +255,13 @@ const StudentController = {
),
);
if (result) {
// Create key redis profile
const key_student_id = HELPER.getURIFromTemplate(CONSTANTS.KEY_PROFILE_STUDENT, {
user_id: student_id,
});
// Delete cache profile student
MEMORY_CACHE.delKeyCache(key_student_id);

return res.status(CONSTANTS.HTTP.STATUS_2XX_OK).json({
status: CONSTANTS.HTTP.STATUS_2XX_OK,
message: returnReasons(CONSTANTS.HTTP.STATUS_2XX_OK),
Expand Down