Migrate the rest of the easy stuff
This commit is contained in:
@@ -58,13 +58,14 @@ export async function onRequestGet(context: RequestContext) {
|
||||
} else if (banData.BanType === 2) current_status = "Banned";
|
||||
|
||||
const response = {
|
||||
history: (
|
||||
await context.env.D1.prepare(
|
||||
"SELECT * FROM game_mod_logs WHERE target = ? ORDER BY executed_at DESC;",
|
||||
)
|
||||
.bind(users[0].id)
|
||||
.all()
|
||||
).results,
|
||||
history: await context.data.prisma.gameModLog.findMany({
|
||||
orderBy: {
|
||||
executed_at: "desc",
|
||||
},
|
||||
where: {
|
||||
target: users[0].id,
|
||||
},
|
||||
}),
|
||||
user: {
|
||||
avatar: thumbnailRequest.ok
|
||||
? (
|
||||
|
||||
Reference in New Issue
Block a user