await it a bit further up the chain

This commit is contained in:
Cadence Ember 2025-01-05 19:27:40 +13:00
parent d7063916a5
commit 97043d90cc
2 changed files with 3 additions and 3 deletions

View file

@ -235,8 +235,8 @@ async function syncSpaceExpressions(data, checkBeforeSync) {
api.sendState(spaceID, "im.ponies.room_emotes", eventKey, content)
}
update(spaceID, "emojis", "moe.cadence.ooye.pack.emojis", expression.emojisToState)
update(spaceID, "stickers", "moe.cadence.ooye.pack.stickers", expression.stickersToState)
await update(spaceID, "emojis", "moe.cadence.ooye.pack.emojis", expression.emojisToState)
await update(spaceID, "stickers", "moe.cadence.ooye.pack.stickers", expression.stickersToState)
}
module.exports.createSpace = createSpace

View file

@ -179,7 +179,7 @@ module.exports = {
*/
async checkMissedExpressions(guild) {
const data = {guild_id: guild.id, ...guild}
createSpace.syncSpaceExpressions(data, true)
await createSpace.syncSpaceExpressions(data, true)
},
/**