mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-27 15:24:56 +00:00
code: session,nextjs,frontends (5 files)
This commit is contained in:
@@ -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
|
||||
|
||||
6
dbal/cpp/include/dbal/errors.hpp
Normal file
6
dbal/cpp/include/dbal/errors.hpp
Normal 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
|
||||
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user