summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornsensfel <SpamShield0@noot-noot.org>2018-12-14 15:18:09 +0100
committernsensfel <SpamShield0@noot-noot.org>2018-12-14 15:18:09 +0100
commit7184f076617493b29ddaf4413ab58d14bba4b9d4 (patch)
treeb0209b0fee9bc85c7d6bbee7cf005dfc8048858f /src/roster
parent0c0aae55b68ac6ff24fc29c9484de013196bc4ef (diff)
...
Diffstat (limited to 'src/roster')
-rw-r--r--src/roster/query/rst_update.erl22
1 files changed, 13 insertions, 9 deletions
diff --git a/src/roster/query/rst_update.erl b/src/roster/query/rst_update.erl
index af421ea..8afa249 100644
--- a/src/roster/query/rst_update.erl
+++ b/src/roster/query/rst_update.erl
@@ -124,11 +124,10 @@ commit_update (QueryState, Input) ->
{
rst_roster:set_character(IX, Character, CurrentRoster),
[
- shr_db_query:update_indexed
+ ataxic_sugar:update_array_cell
(
- rst_roster:get_characters_field(),
IX,
- [shr_db_query:set_value(Character)]
+ ataxic:constant(Character)
)
| UpdateList
]
@@ -138,16 +137,21 @@ commit_update (QueryState, Input) ->
Characters
),
- Query =
- shr_db_query:new
+ ok =
+ ataxia_client:update
(
roster_db,
- RosterID,
- {user, PlayerID},
- QueryList
+ ataxia_security:user_from_id(PlayerID),
+ ataxic:value
+ (
+ ataxic:update_field
+ (
+ rst_roster:get_characters_field(),
+ ataxic:sequence(QueryList)
+ )
+ )
),
- shr_database:commit(Query),
shr_timed_cache:update(roster_db, PlayerID, RosterID, UpdatedRoster),
'ok'.