mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-06-15 01:49:10 +00:00
add role diff calculations, add action buttons, fix a few regressions
This commit is contained in:
parent
3d541ac480
commit
3c545bdeaa
13 changed files with 203 additions and 89 deletions
|
@ -8,7 +8,13 @@ class ServerService extends Service {
|
|||
}
|
||||
|
||||
async ensure (server) {
|
||||
const srv = await this.get(server.id)
|
||||
let srv
|
||||
try {
|
||||
srv = await this.get(server.id)
|
||||
} catch (e) {
|
||||
|
||||
}
|
||||
|
||||
if (srv == null) {
|
||||
return this.create({
|
||||
id: server.id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue