UNPKG

@speakr/speakr-module-services

Version:
29 lines (26 loc) 800 B
"use strict"; const db = require('../../db/'); module.exports = { newRow }; function newRow(account) { return db.accounts_historics.create({ account_id: account.id, active: account.active, platform_id: account.platform_id, influencer_id: account.influencer_id, current_username: account.current_username, paypal_email: account.paypal_email, account_email: account.account_email, bio: account.bio, account_category_id: account.account_category_id, profile_link: account.profile_link, description: account.description, platform_user_id: account.platform_user_id, fair_offer_price: account.fair_offer_price, min_offer_price: account.min_offer_price, validated: account.validated, platform_user_image: account.platform_user_image, parent_id: account.parent_id }) }