set message max length manually

This commit is contained in:
Madeline 2022-07-02 22:09:16 +10:00
parent bbc615150c
commit c1fab4043a
2 changed files with 2 additions and 2 deletions

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 {

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()