mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-13 15:14:49 -06:00
Update fetchStatusMessage
to handle empty offset / page
This commit is contained in:
parent
427c994993
commit
fa14abac5a
@ -656,6 +656,14 @@ export class ChannelStartupService {
|
||||
}
|
||||
|
||||
public async fetchStatusMessage(query: any) {
|
||||
if (!query?.offset) {
|
||||
query.offset = 50;
|
||||
}
|
||||
|
||||
if (!query?.page) {
|
||||
query.page = 1;
|
||||
}
|
||||
|
||||
return await this.prismaRepository.messageUpdate.findMany({
|
||||
where: {
|
||||
instanceId: this.instanceId,
|
||||
|
Loading…
Reference in New Issue
Block a user