We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
fetchStatusMessage
1 parent 427c994 commit fa14abaCopy full SHA for fa14aba
1 file changed
src/api/services/channel.service.ts
@@ -656,6 +656,14 @@ export class ChannelStartupService {
656
}
657
658
public async fetchStatusMessage(query: any) {
659
+ if (!query?.offset) {
660
+ query.offset = 50;
661
+ }
662
+
663
+ if (!query?.page) {
664
+ query.page = 1;
665
666
667
return await this.prismaRepository.messageUpdate.findMany({
668
where: {
669
instanceId: this.instanceId,
0 commit comments