Skip to content

Commit

Permalink
feat: commit pls
Browse files Browse the repository at this point in the history
  • Loading branch information
Sv443 committed Mar 2, 2024
1 parent 17d96b8 commit c1ac0b5
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ out/
test.ts
test.js
src/dev/ghb/
src/dev/*.ignore*
*.bak
*_ignore/
*_ignore.*
Expand Down
26 changes: 26 additions & 0 deletions src/format.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// import type { Submission } from "@prisma/client";
// import type { Joke } from "./types/index.js";

export {};

//

// /**
// * Formats a joke for submission to the database
// * - Calculates similarity to existing jokes in here
// * - Evaluates safe mode property and adds it
// * - Adds the joke ID
// * - etc.
// */
// export function formatJokeForSubmit(joke: Joke): Submission {
// return {
// joke: joke.joke,
// category: joke.category,
// type: joke.type,
// lang: joke.lang,
// flags: joke.flags ?? [],
// nsfw: joke.nsfw,
// submitter: joke.submitter,
// source: joke.source,
// };
// }
2 changes: 1 addition & 1 deletion src/types/jokeapi
Submodule jokeapi updated 1 files
+4 −18 jokes.ts

0 comments on commit c1ac0b5

Please sign in to comment.