chore: Refactor file storage (#5711)
This commit is contained in:
10
server/storage/vaults.ts
Normal file
10
server/storage/vaults.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import SequelizeEncrypted from "sequelize-encrypted";
|
||||
import { Sequelize } from "sequelize-typescript";
|
||||
import env from "@server/env";
|
||||
|
||||
/**
|
||||
* Encrypted field storage, use via the Encrypted decorator, not directly.
|
||||
*/
|
||||
export default function vaults() {
|
||||
return SequelizeEncrypted(Sequelize, env.SECRET_KEY);
|
||||
}
|
||||
Reference in New Issue
Block a user