Zertifizierung erforderlich ist weg
Dieser Commit ist enthalten in:
@ -31,8 +31,8 @@ function main() {
|
||||
}
|
||||
|
||||
const insert = db.prepare(`
|
||||
INSERT OR IGNORE INTO skills (id, name, category, description, requires_certification, expires_after)
|
||||
VALUES (?, ?, ?, ?, ?, ?)
|
||||
INSERT OR IGNORE INTO skills (id, name, category, description, expires_after)
|
||||
VALUES (?, ?, ?, ?, ?)
|
||||
`)
|
||||
|
||||
let count = 0
|
||||
@ -43,9 +43,8 @@ function main() {
|
||||
const id = `${categoryKey}.${sk.id}`
|
||||
const name = sk.name
|
||||
const description = null
|
||||
const requires = cat.id === 'certifications' || sub.id === 'weapons' ? 1 : 0
|
||||
const expires = cat.id === 'certifications' ? 36 : null
|
||||
const res = insert.run(id, name, categoryKey, description, requires, expires)
|
||||
const res = insert.run(id, name, categoryKey, description, expires)
|
||||
if (res.changes > 0) count++
|
||||
}
|
||||
}
|
||||
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren