chore: Refactor file storage (#5711)
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import Redis from "@server/redis";
|
||||
import Redis from "@server/storage/redis";
|
||||
|
||||
// NOTE: this require must come after the ENV var override
|
||||
// so that sequelize uses the test config variables
|
||||
require("@server/database/sequelize");
|
||||
require("@server/storage/database");
|
||||
|
||||
jest.mock("bull");
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import TestServer from "fetch-test-server";
|
||||
import { v4 as uuidv4 } from "uuid";
|
||||
import { CollectionPermission } from "@shared/types";
|
||||
import { sequelize } from "@server/database/sequelize";
|
||||
import { User, Document, Collection, Team } from "@server/models";
|
||||
import onerror from "@server/onerror";
|
||||
import webService from "@server/services/web";
|
||||
import { sequelize } from "@server/storage/database";
|
||||
|
||||
export const seed = async () =>
|
||||
sequelize.transaction(async (transaction) => {
|
||||
|
||||
Reference in New Issue
Block a user