Skip to content

Instantly share code, notes, and snippets.

@markwylde
Created October 8, 2020 09:27
Show Gist options
  • Save markwylde/9b4b477ab950c3c45038d05b6595fed5 to your computer and use it in GitHub Desktop.
Save markwylde/9b4b477ab950c3c45038d05b6595fed5 to your computer and use it in GitHub Desktop.
buildInsertStatement = require('./common/buildInsertStatement')
await db.run(`DELETE FROM "settings" WHERE "key" = 'acmeDirectoryUrl'`)
statement = buildInsertStatement('settings', {
key: 'acmeDirectoryUrl',
value: JSON.stringify('https://acme-v02.api.letsencrypt.org/directory')
})
await db.run(statement.sql, statement.parameters)
await db.run(`DELETE FROM "certificates"`)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment