Example #1
0
				$this.routeCall(sqp.operation, sqp.dynamodb ,true, function(err,data) {

					if (err)
						return typeof $cb !== "function" ? null : $cb.apply( $this, [ err, false ] )
				
					typeof $cb !== "function" ? null : $cb.apply( $this, [ err, util.normalizeItem(data.Attributes || {}), data ])
				})
Example #2
0
				$this.routeCall(sqp.operation, sqp.dynamodb ,true, function(err,data) {
					if (  (sqp.ignore === true ) && ((err || {}).code === 'ConditionalCheckFailedException')  )
						return typeof $cb !== "function" ? null : $cb.apply( $this, [ null, undefined ] )

					if (err)
						return typeof $cb !== "function" ? null : $cb.apply( $this, [ err, false ] )
				
					typeof $cb !== "function" ? null : $cb.apply( $this, [ err, util.normalizeItem(data.Attributes || {}), data ])
				})