🔀 fix: Remove use of Mongo Transactions (#2525)

* fix: remove use of transactions

* fix: remove use of transactions

* refactor(actions): perform OpenAI API operation first, before attempting database updates
This commit is contained in:
Danny Avila 2024-04-24 16:04:46 -04:00 committed by GitHub
parent 667f5f91fe
commit bde6bb0152
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 14 additions and 45 deletions

View file

@ -5,7 +5,6 @@ const handleText = require('./handleText');
const cryptoUtils = require('./crypto');
const citations = require('./citations');
const sendEmail = require('./sendEmail');
const mongoose = require('./mongoose');
const queue = require('./queue');
const files = require('./files');
const math = require('./math');
@ -15,7 +14,6 @@ module.exports = {
...cryptoUtils,
...handleText,
...citations,
...mongoose,
countTokens,
removePorts,
sendEmail,