add woodpecker dashboard proxy
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2026-07-06 18:21:27 +09:00
parent 84c7889857
commit 3aa90d2eee
5 changed files with 142 additions and 4 deletions
+8 -4
View File
@@ -137,15 +137,19 @@ export class UsersService {
async terminateSession(sessionId: string) {
const session = await this.authPrisma.refreshToken.findUnique({
where: { id: sessionId },
select: { id: true },
select: { id: true, userId: true },
});
if (!session) {
throw new NotFoundException('세션을 찾을 수 없습니다.');
}
await this.authPrisma.refreshToken.update({
where: { id: sessionId },
await this.authPrisma.refreshToken.updateMany({
where: {
userId: session.userId,
revokedAt: null,
expiresAt: { gt: new Date() },
},
data: { revokedAt: new Date() },
});
@@ -171,5 +175,5 @@ function getSessionState(
return '만료';
}
return '활성';
return '유효토큰';
}