lint 로직 변경
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { GatewayPrisma, type GatewayPrismaClient } from '@sammo-ts/infra';
|
||||
import type { GatewayPrisma, GatewayPrismaClient } from '@sammo-ts/infra';
|
||||
|
||||
import { createSimplePasswordHasher, type PasswordHasher } from './passwordHasher.js';
|
||||
import type { CreateUserInput, UserOAuthInfo, UserRecord, UserRepository, UserSanctions } from './userRepository.js';
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
import { createRequire } from 'node:module';
|
||||
|
||||
import type * as Pm2 from 'pm2';
|
||||
import type { ProcessManager, ManagedProcessInfo, ProcessDefinition } from './processManager.js';
|
||||
|
||||
type Pm2Module = typeof import('pm2');
|
||||
type Pm2Module = typeof Pm2;
|
||||
|
||||
const require = createRequire(import.meta.url);
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { GatewayPrisma, type GatewayPrismaClient } from '@sammo-ts/infra';
|
||||
import type { GatewayPrisma, GatewayPrismaClient } from '@sammo-ts/infra';
|
||||
|
||||
export const GATEWAY_PROFILE_STATUSES = [
|
||||
'RESERVED',
|
||||
|
||||
@@ -12,7 +12,7 @@ onMounted(async () => {
|
||||
try {
|
||||
const me = await trpc.me.query();
|
||||
if (me) {
|
||||
router.push('/lobby');
|
||||
await router.push('/lobby');
|
||||
}
|
||||
} catch (e) {
|
||||
// Not logged in or error
|
||||
|
||||
@@ -24,7 +24,7 @@ onMounted(async () => {
|
||||
try {
|
||||
me.value = await trpc.me.query();
|
||||
if (!me.value) {
|
||||
router.push('/');
|
||||
await router.push('/');
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@ onMounted(async () => {
|
||||
const handleLogout = async () => {
|
||||
// TODO: Implement logout mutation in gateway-api
|
||||
// await trpc.auth.logout.mutation();
|
||||
router.push('/');
|
||||
await router.push('/');
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user