Removed web project (galvanic authentication support in IL2CPP universal patch)
Moved instance ID to header User instances for profile management .. other stuff
This commit is contained in:
29
src/db.ts
29
src/db.ts
@@ -20,11 +20,11 @@ Deno.addSignalListener('SIGINT', () => {
|
||||
});
|
||||
|
||||
export const Database = new Redis({
|
||||
port: config?.redis.port,
|
||||
host: config?.redis.host,
|
||||
username: config?.redis.username == "" ? undefined : config?.redis.username,
|
||||
password: config?.redis.password == "" ? undefined : config?.redis.password,
|
||||
db: config?.redis.db,
|
||||
port: config.redis.port,
|
||||
host: config.redis.host,
|
||||
username: config.redis.username == "" ? undefined : config.redis.username,
|
||||
password: config.redis.password == "" ? undefined : config.redis.password,
|
||||
db: config.redis.db,
|
||||
lazyConnect: true
|
||||
});
|
||||
Database.on('connect', async () => {
|
||||
@@ -35,7 +35,7 @@ Database.on('connect', async () => {
|
||||
});
|
||||
});
|
||||
Database.on('connecting', () => {
|
||||
log.i('Connecting to Redis..');
|
||||
log.n('Connecting to Redis..');
|
||||
});
|
||||
Database.on('error', (err) => {
|
||||
log.e(`Redis error: ${err.stack}`);
|
||||
@@ -50,18 +50,21 @@ export const KeyGroups = {
|
||||
Dynamic: "dynamic",
|
||||
Game: "game"
|
||||
},
|
||||
Ids: "profile-ids",
|
||||
Profile_Usernames: "profile-usernames",
|
||||
Profiles: {
|
||||
Root: "profiles"
|
||||
Root: "profiles",
|
||||
Username: "username",
|
||||
ProfileImage: "profileImage",
|
||||
Junior: "isJunior",
|
||||
Platforms: "platforms",
|
||||
DisplayName: "displayname"
|
||||
},
|
||||
Usernames: "usernames",
|
||||
Users: {
|
||||
Root: "users",
|
||||
Username: "username",
|
||||
Password: "password",
|
||||
BackupCode: "backupcode",
|
||||
Profiles: "profiles",
|
||||
Meta: "meta"
|
||||
Pubkey: "pubkey",
|
||||
Nonces: "nonces",
|
||||
PlatformIds: "associatedPlatforms"
|
||||
}
|
||||
}
|
||||
export * as Redis from "./db.ts";
|
||||
Reference in New Issue
Block a user