data: Added unknown nick list to character add and nicks modal.
the build was successful

This commit is contained in:
2018-12-04 22:12:54 +01:00
parent 013c50d4f4
commit 7c1623493a
8 changed files with 86 additions and 1 deletions
+13
View File
@@ -190,6 +190,19 @@ class ChracterAPI {
return removeCharacter
})
}
unknownNicks(limit = 100) {
return query(`
query UnknownNicks($limit: Int!) {
unknownNicks(filter: {limit: $limit}) {
nick
score
}
}
`, {limit}).then(({unknownNicks}) => {
return unknownNicks
})
}
}
module.exports = { Character, charactersApi: new ChracterAPI }