Shishigami
Shishigami
Explore posts from servers
PPrisma
Created by Shishigami on 3/20/2025 in #help-and-questions
Relation missing in UncheckedCreateInput
I have this model:
model Configuration {
appId String @unique
predecessedById String? @unique
predecessedBy Configuration? @relation("PredecessedBy", fields: [predecessedById], references: [appId])
successedBy Configuration? @relation("PredecessedBy")
}
model Configuration {
appId String @unique
predecessedById String? @unique
predecessedBy Configuration? @relation("PredecessedBy", fields: [predecessedById], references: [appId])
successedBy Configuration? @relation("PredecessedBy")
}
and I would like to create a configuration like so:
db.configuration.create({
data: {
appId: '...',
predecessedBy: {
connect: {
appId: '...'
}
}
}
});
db.configuration.create({
data: {
appId: '...',
predecessedBy: {
connect: {
appId: '...'
}
}
}
});
However predecessedBy does not exist on the UncheckedCreateInput type, instead there is only successedBy. Why is that and what do I have to change? The Update type has both
6 replies
AAdmincraft
Created by Shishigami on 6/27/2023 in #questions
Resource pack prompt every time someone connects
Hi all, I created a server resource pack with some custom music discs. For me and a few other people, there was a prompt once the first time they connected to the server and after accepting it, it never showed up again. Other people have this prompt every single time they connect to the server and some have died because of it. Why is this happening and how can I ensure that people only get the prompt once? I have set the resource pack in server.properties via resource-pack=url-here. I had require-resource-pack=true but setting it to false has also not solved the issue. I also tried setting resource-pack-sha1=... but people still get the prompt. Any suggestions are appreciated!
16 replies