diff --git a/packages/skin-database/cli.ts b/packages/skin-database/cli.ts index f74e16c9..4eb17b8c 100755 --- a/packages/skin-database/cli.ts +++ b/packages/skin-database/cli.ts @@ -74,7 +74,7 @@ program .command("share") .description( "Share a skin on Twitter and Instagram. If no md5 is " + - "given, random approved skins are shared." + "given, random approved skins are shared." ) .argument("[md5]", "md5 of the skin to share") .option("-t, --twitter", "Share on Twitter") @@ -107,7 +107,7 @@ program .option( "--delete", "Delete a skin from the database, including its S3 files " + - "CloudFlare cache and seach index entries." + "CloudFlare cache and seach index entries." ) .option( "--hide", @@ -116,7 +116,7 @@ program .option( "--delete-local", "Delete a skin from the database only, NOT including its S3 files " + - "CloudFlare cache and seach index entries." + "CloudFlare cache and seach index entries." ) .option("--index", "Update the seach index for a skin.") .option( @@ -195,18 +195,18 @@ program .option( "--fetch-metadata ", "Fetch missing metadata for items from the Internet " + - "Archive. Currently it only fetches missing metadata. In the " + - "future it could refresh stale metadata." + "Archive. Currently it only fetches missing metadata. In the " + + "future it could refresh stale metadata." ) .option( "--fetch-items", "Seach the Internet Archive for items that we don't know about" + - "and add them to our database." + "and add them to our database." ) .option( "--update-metadata ", "Find items in our database that have incorrect or incomplete " + - "metadata, and update the Internet Archive" + "metadata, and update the Internet Archive" ) .option( "--upload-new", @@ -240,7 +240,7 @@ program .command("stats") .description( "Report information about skins in the database. " + - "Identical to `!stats` in Discord." + "Identical to `!stats` in Discord." ) .action(async () => { console.table([await Skins.getStats()]); @@ -286,17 +286,17 @@ program .option( "--likes", "Scrape @winampskins tweets for like and retweet counts, " + - "and update the database." + "and update the database." ) .option( "--milestones", "Check the most recent @winampskins tweets to see if they have " + - "passed a milestone. If so, notify the Discord channel." + "passed a milestone. If so, notify the Discord channel." ) .option( "--followers", "Check if @winampskins has passed a follower count milestone. " + - "If so, notify the Discord channel." + "If so, notify the Discord channel." ) .action(async ({ likes, milestones, followers }) => { if (likes) { @@ -324,7 +324,7 @@ program .option( "--upload-ia-screenshot ", "Upload a screenshot of a skin to the skin's Internet Archive itme. " + - "[[Warning!]] This might result in multiple screenshots on the item." + "[[Warning!]] This might result in multiple screenshots on the item." ) .option( "--upload-missing-screenshots", diff --git a/packages/skin-database/data/SkinModel.ts b/packages/skin-database/data/SkinModel.ts index 4acf802b..7c5c2dee 100644 --- a/packages/skin-database/data/SkinModel.ts +++ b/packages/skin-database/data/SkinModel.ts @@ -27,7 +27,7 @@ export const IS_NOT_README = /(genex\.txt)|(genexinfo\.txt)|(gen_gslyrics\.txt)|(region\.txt)|(pledit\.txt)|(viscolor\.txt)|(winampmb\.txt)|("gen_ex help\.txt)|(mbinner\.txt)$/i; export default class SkinModel { - constructor(readonly ctx: UserContext, readonly row: SkinRow) { } + constructor(readonly ctx: UserContext, readonly row: SkinRow) {} static async fromMd5( ctx: UserContext, diff --git a/packages/skin-database/migrations/20221110164838_mastodon_posts.ts b/packages/skin-database/migrations/20221110164838_mastodon_posts.ts index eaa47a6a..77e68e0c 100644 --- a/packages/skin-database/migrations/20221110164838_mastodon_posts.ts +++ b/packages/skin-database/migrations/20221110164838_mastodon_posts.ts @@ -1,16 +1,16 @@ import * as Knex from "knex"; export async function up(knex: Knex): Promise { - await knex.raw( - `CREATE TABLE "mastodon_posts" ( + await knex.raw( + `CREATE TABLE "mastodon_posts" ( "id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT UNIQUE, "skin_md5" TEXT NOT NULL, post_id text TEXT NOT_NULL UNIQUE, url text TEXT NOT_NULL UNIQUE );` - ); + ); } export async function down(knex: Knex): Promise { - await knex.raw(`DROP TABLE "mastodon_posts"`); + await knex.raw(`DROP TABLE "mastodon_posts"`); }