feat: clear

This commit is contained in:
xion 2025-03-27 10:13:06 +08:00
parent 275e637f62
commit 0f0a4cbd6a
2 changed files with 2 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@kevisual/code-center-module", "name": "@kevisual/code-center-module",
"version": "0.0.13", "version": "0.0.14",
"description": "", "description": "",
"main": "dist/system.mjs", "main": "dist/system.mjs",
"module": "dist/system.mjs", "module": "dist/system.mjs",

View File

@ -1,4 +1,3 @@
import { useConfig } from '@kevisual/use-config';
import { DataTypes, Model, Op, Sequelize } from 'sequelize'; import { DataTypes, Model, Op, Sequelize } from 'sequelize';
import { nanoid, customAlphabet } from 'nanoid'; import { nanoid, customAlphabet } from 'nanoid';
import { CustomError } from '@kevisual/router'; import { CustomError } from '@kevisual/router';
@ -10,7 +9,6 @@ import { oauth } from '../oauth/auth.ts';
import { cryptPwd } from '../oauth/salt.ts'; import { cryptPwd } from '../oauth/salt.ts';
import { OauthUser } from '../oauth/oauth.ts'; import { OauthUser } from '../oauth/oauth.ts';
export const redis = useContextKey<Redis>('redis'); export const redis = useContextKey<Redis>('redis');
const config = useConfig<{ tokenSecret: string }>();
type UserData = { type UserData = {
orgs?: string[]; orgs?: string[];
@ -95,6 +93,7 @@ export class User extends Model {
} }
/** /**
* , tokenUser * , tokenUser
* orgs has set curentUser
* @param username * @param username
* @param includeMe * @param includeMe
* @returns * @returns