1
0
Fork 0
peertube/server/tests/fixtures/peertube-plugin-test-six/main.js
2020-05-04 16:21:39 +02:00

25 lines
543 B
JavaScript

async function register ({
storageManager,
peertubeHelpers
}) {
const { logger } = peertubeHelpers
{
await storageManager.storeData('superkey', { value: 'toto' })
await storageManager.storeData('anotherkey', { value: 'toto2' })
const result = await storageManager.getData('superkey')
logger.info('superkey stored value is %s', result.value)
}
}
async function unregister () {
return
}
module.exports = {
register,
unregister
}
// ###########################################################################