firebase / firebase/functions-samples

[BUG] in sample: delete-unused-accounts-cron TypeError: PromisePool is not a constructor

Open
#956 1 comment 0 reactions 0 assignees View on GitHub
type: bug
Dominant language
JavaScript
Stars
12.2k
Forks
3.8k
Avg merge
3d 23h
Merged PRs (30d)
1

Description

### Which sample has a bug?

delete-unused-accounts-cron

### How to reproduce the issue

I've deployed the sample function exactly per instructions in readme, however, the function fails in firebase and the logs returns:

accountcleanup
TypeError: PromisePool is not a constructor

here is the line (33) of code that triggers the issue:

const promisePool = new PromisePool(() => deleteInactiveUser(inactiveUsers), MAX_CONCURRENT);

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.