mirror of
https://github.com/Expand-sys/CCash
synced 2026-03-22 20:47:10 +11:00
🐛 fixed sendfunds log
This commit is contained in:
parent
417f52253b
commit
34ced37a71
1 changed files with 3 additions and 3 deletions
|
|
@ -126,9 +126,9 @@ public:
|
||||||
{
|
{
|
||||||
//if user lacks a log, one is created, this is to reduce usage
|
//if user lacks a log, one is created, this is to reduce usage
|
||||||
Transaction temp(a_name, b_name, amount);
|
Transaction temp(a_name, b_name, amount);
|
||||||
Transaction temp2(a_name, b_name, amount);
|
Transaction temp2 = temp; // to keep same time
|
||||||
|
|
||||||
users.if_contains(a_name, [&temp, &a_name](const User &u) {
|
users.if_contains(a_name, [this, &temp, &a_name](const User &u) {
|
||||||
if (logs.try_emplace_l(a_name, [&temp](Log &l) { l.AddTrans(std::move(temp)); }))
|
if (logs.try_emplace_l(a_name, [&temp](Log &l) { l.AddTrans(std::move(temp)); }))
|
||||||
{
|
{
|
||||||
logs.modify_if(a_name, [&temp](Log &l) {
|
logs.modify_if(a_name, [&temp](Log &l) {
|
||||||
|
|
@ -136,7 +136,7 @@ public:
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
users.if_contains(a_name, [&temp, &a_name](const User &u) {
|
users.if_contains(a_name, [this, &temp2, &b_name](const User &u) {
|
||||||
if (logs.try_emplace_l(b_name, [&temp2](Log &l) { l.AddTrans(std::move(temp2)); }))
|
if (logs.try_emplace_l(b_name, [&temp2](Log &l) { l.AddTrans(std::move(temp2)); }))
|
||||||
{
|
{
|
||||||
logs.modify_if(b_name, [&temp2](Log &l) {
|
logs.modify_if(b_name, [&temp2](Log &l) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue