Skip to content

Commit

Permalink
fix: synchronize system was broken thanks to ESM
Browse files Browse the repository at this point in the history
  • Loading branch information
YoannMa committed Nov 16, 2022
1 parent d10dd6b commit c8c829b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/modules/history/services/sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ module.exports = class SyncService extends Service {
async init() {

// eslint-disable-next-line node/no-unsupported-features/es-syntax,node/no-missing-import
this.#PQueue = await import('p-queue');
const { default : PQueue } = await import('p-queue');

this.#PQueue = PQueue;
}

async * fetchAllMessages(channel, limit = 100) {
Expand Down

0 comments on commit c8c829b

Please sign in to comment.