mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-22 09:37:17 +00:00
Fix lints
This commit is contained in:
parent
4a2a08b628
commit
d09293c975
4 changed files with 29 additions and 30 deletions
|
|
@ -9,14 +9,14 @@ const TWEETABLE_QUERY = {
|
|||
tweeted: { $ne: true },
|
||||
approved: true,
|
||||
rejected: { $ne: true },
|
||||
type: "CLASSIC"
|
||||
type: "CLASSIC",
|
||||
};
|
||||
|
||||
const REVIEWABLE_QUERY = {
|
||||
tweeted: { $ne: true },
|
||||
approved: { $ne: true },
|
||||
rejected: { $ne: true },
|
||||
type: "CLASSIC"
|
||||
type: "CLASSIC",
|
||||
};
|
||||
function getSkinRecord(skin) {
|
||||
const {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
const tweet = require("../../tasks/tweet");
|
||||
const { CAPTBARITONE_USER_ID } = require("../../config");
|
||||
|
||||
async function handler(message, args) {
|
||||
async function handler(message) {
|
||||
if (message.author.id !== CAPTBARITONE_USER_ID) {
|
||||
await message.channel.send(
|
||||
`Currently only @captbaritone can use this command`
|
||||
|
|
@ -9,7 +9,6 @@ async function handler(message, args) {
|
|||
return;
|
||||
}
|
||||
await tweet(message.client);
|
||||
client.destroy();
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
var graphqlHTTP = require("express-graphql");
|
||||
var { buildSchema } = require("graphql");
|
||||
const graphqlHTTP = require("express-graphql");
|
||||
const { buildSchema } = require("graphql");
|
||||
const Skins = require("./data/skins");
|
||||
|
||||
// Construct a schema, using GraphQL schema language
|
||||
var schema = buildSchema(`
|
||||
const schema = buildSchema(`
|
||||
enum TweetStatus {
|
||||
TWEETED
|
||||
REJECTED
|
||||
|
|
@ -120,7 +120,7 @@ class Skin {
|
|||
}
|
||||
|
||||
// The root provides a resolver function for each API endpoint
|
||||
var root = {
|
||||
const root = {
|
||||
skin: ({ md5 }) => {
|
||||
return new Skin(md5);
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue