mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-20 02:10:15 +01:00
WIP: first pass, massive refactor of model imports
This commit is contained in:
parent
c682d45fb2
commit
ab5450be8b
53 changed files with 179 additions and 72 deletions
|
|
@ -1,10 +1,10 @@
|
|||
const mongoose = require('mongoose');
|
||||
const { Balance } = require('@librechat/data-schemas');
|
||||
const { MongoMemoryServer } = require('mongodb-memory-server');
|
||||
const { spendTokens, spendStructuredTokens } = require('./spendTokens');
|
||||
const { getBalanceConfig } = require('~/server/services/Config');
|
||||
const { getMultiplier, getCacheMultiplier } = require('./tx');
|
||||
const { createTransaction } = require('./Transaction');
|
||||
const Balance = mongoose.models.Balance;
|
||||
|
||||
// Mock the custom config module so we can control the balance flag.
|
||||
jest.mock('~/server/services/Config');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue