Don't remember working on this but sure

This commit is contained in:
Lncvrt committed 2026-03-06 12:33:42 -07:00
1 parent 53c5642b4e
commit ad2b6a0bbb
1 file changed
+12 -12
+12 -12
View File
@@ -338,20 +338,20 @@ app.ws('/ws', {
}
const currentUserData = await db1
.select({
saveData: berryDashUserData.saveData
})
.from(berryDashUserData)
.select({
saveData: berryDashUserData.saveData
})
.from(berryDashUserData)
.where(eq(berryDashUserData.id, userId))
.execute()
.execute()
const currentSavedata = currentUserData[0]?.saveData
? JSON.parse(currentUserData[0].saveData)
: null
: null
if (!currentSavedata) {
connection0.end()
connection1.end()
connection0.end()
connection1.end()
ws.send({
type: 'multiplayer_join_response',
accepted: false,
@@ -359,8 +359,8 @@ app.ws('/ws', {
id: null,
players: null
})
return
}
return
}
const currentCustomIcon =
currentSavedata.bird?.customIcon?.selected ?? null
@@ -371,10 +371,10 @@ app.ws('/ws', {
? 1
: currentSavedata.bird?.overlay ?? 0
const currentIconColor = currentCustomIcon
? [255, 255, 255]
? [255, 255, 255]
: currentSavedata?.settings?.colors?.icon ?? [255, 255, 255]
const currentOverlayColor = currentCustomIcon
? [255, 255, 255]
? [255, 255, 255]
: currentSavedata?.settings?.colors?.overlay ?? [255, 255, 255]
const players: any = []