Skip to content

Commit

Permalink
Add an ID to the global vars, so they can be tracked correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
yazz committed Jan 29, 2025
1 parent f3f742b commit 3a54378
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions public/go.html
Original file line number Diff line number Diff line change
Expand Up @@ -13881,6 +13881,7 @@ <h1 style='width:100%;vertical-align:top;display:inline-block;font-size:100px; t
await yz.uiDb.createAlaSqlTable({
tableName: "ui_table_global_vars",
fields: [
{name: "id", fieldType: "INT"},
{name: "prop_id", fieldType: "STRING"},
{name: "prop_type", fieldType: "STRING"},
{name: "prop_value", fieldType: "STRING"}
Expand Down Expand Up @@ -14421,8 +14422,8 @@ <h1 style='width:100%;vertical-align:top;display:inline-block;font-size:100px; t
if (exists.length > 0) {
sqlui("update ui_table_global_vars set prop_value = ? where prop_id = ?",[dbPropValue,propId])
} else {
sqlui("insert into ui_table_global_vars (prop_id , prop_type , prop_value) values (?,?,?)",
[propId, propType, dbPropValue])
sqlui("insert into ui_table_global_vars (id , prop_id , prop_type , prop_value) values (?,?,?,?)",
[yz.debug.nextDebugTick++, propId, propType, dbPropValue])
}
},
getGlobalVar: function ( propId ) {
Expand Down

0 comments on commit 3a54378

Please sign in to comment.