UNPKG

appsapp-cli

Version:

This command line program is the important counterpart of appsapp-module for connecting built-in or custom backend services.

22 lines (17 loc) 430 B
const admin = require('firebase-admin'); /** * Creates a custom call * @param action * @param data * @returns {Promise} */ function custom(action, data) { return new Promise(function (resolve, reject) { admin.database().ref('_queue/' + action.actionid).set(action).then(() => { resolve(true); }).catch((error) => { reject(error); }); }); } module.exports = custom;