code: session,nextjs,frontends (5 files)

This commit is contained in:
2025-12-26 03:52:04 +00:00
parent 7cbb1d5f7d
commit 1c2111b13b
5 changed files with 13 additions and 4 deletions

View File

@@ -1,3 +1,6 @@
#pragma once
#ifndef DBAL_CLIENT_WRAPPER_HPP
#define DBAL_CLIENT_WRAPPER_HPP
#include "dbal/core/client.hpp"
#endif // DBAL_CLIENT_WRAPPER_HPP

View File

@@ -0,0 +1,6 @@
#ifndef DBAL_ERRORS_WRAPPER_HPP
#define DBAL_ERRORS_WRAPPER_HPP
#include "dbal/core/errors.hpp"
#endif // DBAL_ERRORS_WRAPPER_HPP

View File

@@ -1,4 +1,4 @@
import { getAdapter } from '../../core/dbal-client'
import { getAdapter } from '../../../core/dbal-client'
export async function deleteSessionByToken(token: string): Promise<boolean> {
const adapter = getAdapter()

View File

@@ -1,4 +1,4 @@
import { getAdapter } from '../../core/dbal-client'
import { getAdapter } from '../../../core/dbal-client'
export async function deleteSession(sessionId: string): Promise<boolean> {
const adapter = getAdapter()

View File

@@ -1,6 +1,6 @@
import { getAdapter } from '../../core/dbal-client'
import type { Session, UpdateSessionInput } from './types'
import { mapSessionRecord } from './map-session-record'
import { mapSessionRecord } from '../map-session-record'
export async function updateSession(sessionId: string, input: UpdateSessionInput): Promise<Session> {
const adapter = getAdapter()