We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f82e766 commit f81849aCopy full SHA for f81849a
src/events/messageCreateForum.ts
@@ -137,12 +137,7 @@ export default event({
137
userThreads.forEach(deleteThread);
138
139
const oldThreads = allJobPosts
140
- .filter((thread) => {
141
- console.log(
142
- `creadedTimestamp: ${thread.createdTimestamp} - dateNow: ${Date.now()} - ${thread.createdTimestamp + 15778476 < Date.now()}`,
143
- );
144
- return thread.createdTimestamp + 15778476 < Date.now();
145
- })
+ .filter((thread) => thread.createdTimestamp + 15778800000 < Date.now())
146
.filter((thread) => thread.ownerId !== message.author.id)
147
.filter((thread) => thread.archived);
148
console.log(
0 commit comments