SpicyJungle
Explore posts from serversPPrisma
•Created by SpicyJungle on 7/9/2024 in #help-and-questions
Typescript one to many relation
I'm trying to create a record like this:
However, typescript complains about the trimorders field:
Type '{ id: number; ticker: string; price: number; dir: string; shares: number; userid: number; }[]' is not assignable to type 'TrimOrdersUncheckedCreateNestedManyWithoutLimitInput | TrimOrdersCreateNestedManyWithoutLimitInput | undefined'.
These are the schemas:
3 replies
DIAdiscord.js - Imagine an app
•Created by SpicyJungle on 7/2/2023 in #djs-questions
Not recieving heartbeats, killed after ~50 seconds, zombie connection, do recieve guildCreate event
Hey, I'm having a really annoying issue. I have a ubuntu server on a digitalocean droplet where I try to host a djs 14 bot made with typescript. I have ran a djs 13 bot with javascript on the same server, with no issues. For some reason, when I run it, the bot status changes to "Online" but I never recieve the ready event, nor recieve commands. After about 50 seconds, it's killed (maybe after recieving all ~650 guilds?).
This is the output from
client.on("debug")
:
It takes about 40-50 seconds from the "First heartbeat sent" until "Destroying shard".
Using the raw event I got a lot of my guilds logged, not sure if i recieved every guild.
Node version: 20.3.1
Djs: 14.11.0
Ubuntu 22.10
Please let me know if any more info is needed 🙂41 replies