Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- commit 85d5fa8dc2198dd0b4d31fa2d03301dc8a6940c7
- Author: Philippe <...@linuxmail.org>
- Date: Thu Aug 28 12:14:19 2014 +0100
- Added final touches to the meta title configuration
- diff --git a/client/app/index.html b/client/app/index.html
- index f651202..5fab1ef 100644
- --- a/client/app/index.html
- +++ b/client/app/index.html
- @@ -12,7 +12,7 @@
- <meta name="fragment" content="!">
- - <title ng-bind="seo.pageTitle">DiceBitcoin - bitcoin casino | bitcoin dice | bitcoin game</title>
- + <title ng-bind="seo.pageTitle"></title>
- <!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
- diff --git a/client/app/scripts/controllers/home_controller.js b/client/app/scripts/controllers/home_controller.js
- index 3ffa751..f0bcbf2 100644
- --- a/client/app/scripts/controllers/home_controller.js
- +++ b/client/app/scripts/controllers/home_controller.js
- @@ -4,9 +4,8 @@ define(['./module', 'utils'], function (controllers, utils) {
- controllers.controller('HomeController', function ($scope, $rootScope, $cookieStore, user, ngDialog, shortcut) {
- var welcomeShown = $cookieStore.get('w');
- - $scope.$parent.seo = {
- - pageTitle: 'DiceBitco.in - bitcoin dice - casino bitcoin game',
- - metaDescription: 'Play dice game and win bitcoins with the best bitcoin casino available. With this quick and fun dice game you can earn lots of bitcoins!'
- + $scope.$scope.$parent.seo = {
- + pageTitle: 'DiceBitco.in - bitcoin dice - casino bitcoin game'
- };
- $rootScope.user = user;
- diff --git a/server/domain_objects/roll.js b/server/domain_objects/roll.js
- index 079ba7e..8ed6e2d 100644
- --- a/server/domain_objects/roll.js
- +++ b/server/domain_objects/roll.js
- @@ -151,15 +151,29 @@ module.exports = {
- return addParams({ roll: roll, win: win, created_at: now });
- },
- persistBet = function() {
- - var balanceParam = parameters.win ?
- - users.table.balance.plus(parameters.profit) :
- - users.table.balance.minus(parameters.bet_size);
- + var umeta = parameters.umeta,
- + tprofit = parseFloat(umeta.pr),
- + tpayout = parseFloat(umeta.po),
- + tenable = !_.isNaN(tprofit) || !_.isNaN(tpayout),
- + nonceIncrBy = 1,
- + balanceParam;
- +
- + if (tenable && parameters.win &&
- + (_.isNaN(tpayout) || parameters.payout >= tpayout) &&
- + (_.isNaN(tprofit) || parameters.profit >= tprofit)) {
- + nonceIncrBy += 1;
- + parameters.nonce += 1;
- + addParametersFromRollingTheDice();
- + }
- +
- + balanceParam = parameters.win ? users.table.balance.plus(parameters.profit) :
- + users.table.balance.minus(parameters.bet_size);
- return Q.all([
- bets.create(parameters),
- users.update(parameters.user_id, {
- balance: balanceParam,
- - nonce: users.table.nonce.plus(1),
- + nonce: users.table.nonce.plus(nonceIncrBy),
- updated_at: now
- })
- ]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement