forked from mtusi2026/mtusi2026lab3
fix: revoke session in shared cache before database to keep replicas consistent
This commit is contained in:
@@ -184,7 +184,13 @@ export const OPERATION_EXAMPLES: Record<string, OperationExamples> = {
|
||||
'DELETE /api/v1/auth/sessions/current': {
|
||||
responses: {
|
||||
'401': UNAUTHORIZED,
|
||||
'503': UNAVAILABLE,
|
||||
'503': {
|
||||
...UNAVAILABLE,
|
||||
cache: example(
|
||||
'Redis недоступен — отзыв не выполнен, повторите позже',
|
||||
error('unavailable', 'session cache unavailable'),
|
||||
),
|
||||
},
|
||||
},
|
||||
},
|
||||
'GET /api/v1/users/me': {
|
||||
|
||||
Reference in New Issue
Block a user