Compare commits
2 Commits
8748d8f6bc
...
14a3e54c22
| Author | SHA1 | Date | |
|---|---|---|---|
|
14a3e54c22
|
|||
|
b53f6ef20e
|
@@ -48,7 +48,7 @@ export default async function (
|
||||
};
|
||||
|
||||
const userLogs = await context.env.D1.prepare(
|
||||
"SELECT executed_at FROM game_mod_logs WHERE target = ? ORDER BY executed_at DESC;",
|
||||
"SELECT action, executed_at FROM game_mod_logs WHERE target = ? ORDER BY executed_at DESC;",
|
||||
)
|
||||
.bind(user)
|
||||
.all();
|
||||
|
||||
@@ -55,7 +55,10 @@ export async function setBanList(
|
||||
etag?: string,
|
||||
) {
|
||||
const setRequest = await fetch(DATASTORE_URL, {
|
||||
body: JSON.stringify(etag, value),
|
||||
body: JSON.stringify({
|
||||
etag,
|
||||
value,
|
||||
}),
|
||||
headers: {
|
||||
"content-type": "application/json",
|
||||
"x-api-key": context.env.ROBLOX_OPENCLOUD_KEY,
|
||||
|
||||
Reference in New Issue
Block a user