mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-08-28 06:08:13 -05:00
fix crash
This commit is contained in:
@@ -388,8 +388,8 @@ const resolvers = {
|
||||
|
||||
let saved = 0
|
||||
|
||||
args.maps.forEach((playedMap) => {
|
||||
const existingMap = await AnalyzerMap.findOne({hash: playedMap.hash})
|
||||
args.maps.forEach(async (playedMap) => {
|
||||
const existingMap = await AnalyzerMap.findOne({ hash: playedMap.hash })
|
||||
if (!existingMap) {
|
||||
playedMap.type = eventType
|
||||
await AnalyzerMap.create(playedMap)
|
||||
|
||||
Reference in New Issue
Block a user