mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-13 07:04:50 -06:00
Merge pull request #1536 from Daquisu/fix-fetchStatusMessage-params
Update `fetchStatusMessage` to handle empty offset / page
This commit is contained in:
commit
e469dc132f
@ -677,6 +677,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