add encryption
This commit is contained in:
@@ -82,16 +82,19 @@ app.whenReady().then(async () => {
|
||||
const config = await new PluginConfig(filesystemPlugin).load()
|
||||
|
||||
// Create instance of active adapter
|
||||
// const plugin = registry.get(config.activeAdapter)
|
||||
const plugin = registry.get(supabasePlugin.id)
|
||||
// const adapter = plugin.createAdapter(config.adapterConfig)
|
||||
const adapter = plugin.createAdapter({
|
||||
supabaseKey: process.env.SUPABASE_KEY,
|
||||
supabaseUrl: process.env.SUPABASE_URL,
|
||||
})
|
||||
const plugin = registry.get(config.activeAdapter)
|
||||
// const plugin = registry.get(supabasePlugin.id)
|
||||
const adapter = plugin.createAdapter(config.adapterConfig)
|
||||
// const adapter = plugin.createAdapter({
|
||||
// supabaseKey: process.env.SUPABASE_KEY,
|
||||
// supabaseUrl: process.env.SUPABASE_URL,
|
||||
// })
|
||||
|
||||
// Init Notes API
|
||||
const notesAPI = new NotesAPI(adapter)
|
||||
const notesAPI = new NotesAPI(
|
||||
adapter,
|
||||
'729a0d21d783654c68f1a0123e2a0e986350de536b5324f1f35876ea12ffeaf5',
|
||||
)
|
||||
await notesAPI.init()
|
||||
|
||||
// Handle Notes API
|
||||
|
||||
Reference in New Issue
Block a user