Files
myDrive/backend/services/chunk-service/actions/helper-actions.ts
T
2024-12-07 18:55:56 -05:00

12 lines
315 B
TypeScript

import { S3Actions } from "../actions/S3-actions";
import { FilesystemActions } from "../actions/file-system-actions";
import env from "../../../enviroment/env";
export const getStorageActions = () => {
if (env.dbType === "s3") {
return new S3Actions();
} else {
return new FilesystemActions();
}
};