Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
9452a64e
Commit
9452a64e
authored
13 years ago
by
mcmlxxix
Browse files
Options
Downloads
Patches
Plain Diff
unbreak
parent
cf550424
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
exec/load/json-db.js
+3
-3
3 additions, 3 deletions
exec/load/json-db.js
with
3 additions
and
3 deletions
exec/load/json-db.js
+
3
−
3
View file @
9452a64e
...
...
@@ -651,7 +651,7 @@ function JSONdb (fileName) {
/* locate the requested record within the database */
var
record
=
identify_remains
.
call
(
this
,
request
.
client
,
request
.
parent_name
,
request
.
child_name
this
,
request
.
client
,
request
.
parent_name
,
request
.
child_name
,
request
.
oper
);
/* if there was an error parsing object location, delete request */
...
...
@@ -813,7 +813,7 @@ function JSONdb (fileName) {
/* parse an object location name and return the object (ex: dicewarz2.games.1.players.1.tiles.0)
an object containing the corresponding data and its shadow object */
function
identify_remains
(
client
,
parent_name
,
child_name
)
{
function
identify_remains
(
client
,
parent_name
,
child_name
,
oper
)
{
var
data
=
this
.
data
;
var
shadow
=
this
.
shadow
;
...
...
@@ -837,7 +837,7 @@ function JSONdb (fileName) {
shadow
=
shadow
[
c
];
/* keep track of current object, and store the immediate parent of the request object */
if
(
data
!==
undefined
)
{
if
(
data
[
c
]
===
undefined
&&
create_new
)
if
(
data
[
c
]
===
undefined
&&
oper
==
"
WRITE
"
)
create_data
(
data
,
c
);
data
=
data
[
c
];
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment