Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
forgetso committed Aug 1, 2024
1 parent 61390ca commit 5b02bee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 1 addition & 3 deletions packages/database/src/captchaDatabase/captchaDatabse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,8 @@ const StoredCaptcha = mongoose.model('StoredCaptcha', UserCommitmentRecordSchema
export const saveCaptchas = async (events: UserCommitmentRecord[], atlasUri: string) => {
const connection = mongoose.createConnection(atlasUri, {
authSource: 'admin',
useNewUrlParser: true,
useUnifiedTopology: true,
})
await new Promise((resolve) => {
await new Promise<void>((resolve, reject) => {
connection
.once('open', () => {
logger.info('Connected to MongoDB Atlas')
Expand Down
5 changes: 2 additions & 3 deletions packages/provider/src/api/captchaScheduler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
import { CronJob } from 'cron'
import { KeyringPair } from '@polkadot/keyring/types'
import { ProsopoConfigOutput } from '@prosopo/types'
import { ProsopoEnvError } from '@prosopo/common'
import type { KeyringPair } from '@polkadot/keyring/types'
import type { ProsopoConfigOutput } from '@prosopo/types'
import { ProviderEnvironment } from '@prosopo/env'
import { Tasks } from '../tasks/tasks.js'

Expand Down

0 comments on commit 5b02bee

Please sign in to comment.