mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 07:37:25 +01:00
Save username instead of uuid (no queries necessary anymore)
This commit is contained in:
@@ -738,7 +738,7 @@ api.castSpell = {
|
||||
if (targetType === 'user') {
|
||||
party.sendChat(message, null, null, {
|
||||
type: 'spell_cast_user',
|
||||
user: user._id,
|
||||
user: user.profile.name,
|
||||
class: klass,
|
||||
spell: spellId,
|
||||
target: partyMembers._id,
|
||||
@@ -746,7 +746,7 @@ api.castSpell = {
|
||||
} else {
|
||||
party.sendChat(message, null, null, {
|
||||
type: 'spell_cast_party',
|
||||
user: user._id,
|
||||
user: user.profile.name,
|
||||
class: klass,
|
||||
spell: spellId,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user