mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 03:59:50 +02:00
feat: bump int size
This commit is contained in:
1 parent
30ca5c053a
commit
ba17aae706
4 files changed
+17
-19
No files matched your search
@@ -0,0 +1,9 @@
|
|||||||
|
# BlitzKit 1.27.3
|
||||||
|
|
||||||
|
This update only affects the bot.
|
||||||
|
|
||||||
|
## Fixes
|
||||||
|
|
||||||
|
- Added support for 64-bit IDs allowing users with new accounts to link with BlitzKit
|
||||||
|
- This comes at the added cost of resetting the links of all other accounts
|
||||||
|
- Just re-link and you're good to go
|
||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "blitzkit",
|
"name": "blitzkit",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "1.27.2",
|
"version": "1.27.3",
|
||||||
"description": "🎉 Tools for everything World of Tanks Blitz",
|
"description": "🎉 Tools for everything World of Tanks Blitz",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"types": "./types.d.ts",
|
"types": "./types.d.ts",
|
||||||
|
|||||||
@@ -8,6 +8,8 @@ export async function getBlitzFromDiscord(discordId: bigint) {
|
|||||||
|
|
||||||
if (unique === null) return null;
|
if (unique === null) return null;
|
||||||
|
|
||||||
await flagUserActivity(unique.blitz_id);
|
const id = Number(unique.blitz_id);
|
||||||
return { id: unique.blitz_id, region: idToRegion(unique.blitz_id) };
|
|
||||||
|
await flagUserActivity(id);
|
||||||
|
return { id, region: idToRegion(id) };
|
||||||
}
|
}
|
||||||
+3
-16
@@ -9,28 +9,15 @@ datasource db {
|
|||||||
}
|
}
|
||||||
|
|
||||||
model User {
|
model User {
|
||||||
blitz_id Int @id @map("blitz") // map: "blitz" was too vague
|
blitz_id BigInt @id @map("blitz") // map: "blitz" was too vague
|
||||||
last_used DateTime? @default(now())
|
last_used DateTime? @default(now())
|
||||||
tank_votes TankVote[]
|
|
||||||
|
|
||||||
@@map("Users") // map: "Users" was mistakenly plural
|
@@map("Users") // map: "Users" was mistakenly plural
|
||||||
}
|
}
|
||||||
|
|
||||||
model TankVote {
|
|
||||||
id Int @id
|
|
||||||
last_updated DateTime @default(now())
|
|
||||||
easiness Int?
|
|
||||||
firepower Int?
|
|
||||||
maneuverability Int?
|
|
||||||
survivability Int?
|
|
||||||
|
|
||||||
user User @relation(fields: [user_blitz_id], references: [blitz_id])
|
|
||||||
user_blitz_id Int
|
|
||||||
}
|
|
||||||
|
|
||||||
model DiscordUser {
|
model DiscordUser {
|
||||||
discord_id BigInt @id @map("discord") // map: "discord" was too vague
|
discord_id BigInt @id @map("discord") // map: "discord" was too vague
|
||||||
blitz_id Int @map("blitz") // map: "blitz" was too vague
|
blitz_id BigInt @map("blitz") // map: "blitz" was too vague
|
||||||
|
|
||||||
@@map("DiscordUsers") // map: "DiscordUsers" was mistakenly plural
|
@@map("DiscordUsers") // map: "DiscordUsers" was mistakenly plural
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user