mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 10:21:36 +03:00
8046f4d437
* Added updateLastSeen method to user model refs #10138 * Refactor codebase to use user.updateLastSeen refs #10138 This is to ensure all updates go via the same method, meaning any specific logic can be handled in one place, it also helps with grepping the codebase to find where this occurs * Created updateUserLastSeen middleware for v2 admin refs #10138 This is intended to be used with the v2 admin api and _possibly_ the content api, to give us an accruate report on thelast time a user access a ghost instance. * Wired updateUserLastSeen up to v2 Admin API closes #10138 * Fixed broken test for v2 admin api no-issue This test was broken because it was incorrectly testing for a method to be called exactly once - this was irrelevant to the functionality being tested for. * Updated user check method to set status to active no-issue * Debounced the updateUserLastSeen middlware an hour no-issue * Resolved some PR comments
86 lines
1.5 KiB
JavaScript
86 lines
1.5 KiB
JavaScript
module.exports = {
|
|
get api() {
|
|
return require('./api');
|
|
},
|
|
|
|
get image() {
|
|
return require('./image');
|
|
},
|
|
|
|
get validation() {
|
|
return require('./validation');
|
|
},
|
|
|
|
get adminRedirects() {
|
|
return require('./admin-redirects');
|
|
},
|
|
|
|
get brute() {
|
|
return require('./brute');
|
|
},
|
|
|
|
get cacheControl() {
|
|
return require('./cache-control');
|
|
},
|
|
|
|
get customRedirects() {
|
|
return require('./custom-redirects');
|
|
},
|
|
|
|
get errorHandler() {
|
|
return require('./error-handler');
|
|
},
|
|
|
|
get frontendClient() {
|
|
return require('./frontend-client');
|
|
},
|
|
|
|
get ghostLocals() {
|
|
return require('./ghost-locals');
|
|
},
|
|
|
|
get labs() {
|
|
return require('./labs');
|
|
},
|
|
|
|
get logRequest() {
|
|
return require('./log-request');
|
|
},
|
|
|
|
get maintenance() {
|
|
return require('./maintenance');
|
|
},
|
|
|
|
get prettyUrls() {
|
|
return require('./pretty-urls');
|
|
},
|
|
|
|
get serveFavicon() {
|
|
return require('./serve-favicon');
|
|
},
|
|
|
|
get servePublicFile() {
|
|
return require('./serve-public-file');
|
|
},
|
|
|
|
get staticTheme() {
|
|
return require('./static-theme');
|
|
},
|
|
|
|
get uncapitalise() {
|
|
return require('./uncapitalise');
|
|
},
|
|
|
|
get urlRedirects() {
|
|
return require('./url-redirects');
|
|
},
|
|
|
|
get updateUserLastSeen() {
|
|
return require('./update-user-last-seen');
|
|
},
|
|
|
|
get emitEvents() {
|
|
return require('./emit-events');
|
|
}
|
|
};
|