set message max length manually
This commit is contained in:
parent
bbc615150c
commit
c1fab4043a
@ -91,7 +91,7 @@ app.use((req, res, next) => {
|
|||||||
}
|
}
|
||||||
else if (rateLimits[ip] > Date.now()) {
|
else if (rateLimits[ip] > Date.now()) {
|
||||||
rateLimits[ip] += allowRequestsEveryMs;
|
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);
|
return res.sendStatus(429);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -114,7 +114,7 @@ export class Message extends BaseClass {
|
|||||||
@ManyToOne(() => Application)
|
@ManyToOne(() => Application)
|
||||||
application?: Application;
|
application?: Application;
|
||||||
|
|
||||||
@Column({ nullable: true })
|
@Column({ nullable: true, length: 4000 })
|
||||||
content?: string;
|
content?: string;
|
||||||
|
|
||||||
@Column()
|
@Column()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user