set message max length manually

This commit is contained in:
Madeline committed 2022-07-02 22:09:16 +10:00
1 parent bbc615150c
commit c1fab4043a
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -91,7 +91,7 @@ app.use((req, res, next) => {
}
else if (rateLimits[ip] > Date.now()) {
rateLimits[ip] += allowRequestsEveryMs;
console.log(`user ${ip} was timed out for ${(rateLimits[ip] - Date.now()) / 1000}s`);
console.log(`${new Date()} : user ${ip} was timed out for ${(rateLimits[ip] - Date.now()) / 1000}s`);
return res.sendStatus(429);
}
else {
+1 -1
View File
@@ -114,7 +114,7 @@ export class Message extends BaseClass {
@ManyToOne(() => Application)
application?: Application;
@Column({ nullable: true })
@Column({ nullable: true, length: 4000 })
content?: string;
@Column()