summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorCyber <cyber.hf18@gmail.com>2025-11-28 06:59:53 +0100
committerGitHub <noreply@github.com>2025-11-28 06:59:53 +0100
commit86b60cfc04d9181b550a6233df3d8c6825fd22ea (patch)
tree25187b5b07abfc43024b1d9a43c6255320a477c1 /src
parentPagnation and guild scoping for mention inbox (diff)
parentremove unneeded log (diff)
downloadserver-ts-86b60cfc04d9181b550a6233df3d8c6825fd22ea.tar.xz
Merge pull request #1409 from MathMan05/removeLog
remove unneeded log
Diffstat (limited to 'src')
-rw-r--r--src/api/util/handlers/Message.ts1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/api/util/handlers/Message.ts b/src/api/util/handlers/Message.ts

index 39a54f4f..fd163014 100644 --- a/src/api/util/handlers/Message.ts +++ b/src/api/util/handlers/Message.ts
@@ -71,7 +71,6 @@ export async function handleMessage(opts: MessageOptions): Promise<Message> { if (limit) { const lastMsgTime = (await Message.findOne({ where: { channel_id: channel.id, author_id: opts.author_id }, select: { timestamp: true }, order: { timestamp: "DESC" } })) ?.timestamp; - console.log(limit, lastMsgTime && +lastMsgTime - (Date.now() - limit * 1000)); if (lastMsgTime && Date.now() - limit * 1000 < +lastMsgTime) { permission ||= await getPermission(opts.author_id, channel.guild_id, channel); //FIXME MANAGE_MESSAGES and MANAGE_CHANNELS will need to be removed once they're gone as checks