mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-17 14:19:40 +08:00
renamed folder dao to dal
This commit is contained in:
parent
ec8ec49b71
commit
8524646380
23 changed files with 19 additions and 19 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import _ from "lodash";
|
||||
import { randomBytes } from "crypto";
|
||||
import { hash } from "bcrypt";
|
||||
import * as ApeKeysDAL from "../../dao/ape-keys";
|
||||
import * as ApeKeysDAL from "../../dal/ape-keys";
|
||||
import MonkeyError from "../../utils/error";
|
||||
import { MonkeyResponse } from "../../utils/monkey-response";
|
||||
import { base64UrlEncode } from "../../utils/misc";
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import * as ConfigDAL from "../../dao/config";
|
||||
import * as ConfigDAL from "../../dal/config";
|
||||
import { MonkeyResponse } from "../../utils/monkey-response";
|
||||
|
||||
export async function getConfig(
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import _ from "lodash";
|
||||
import { MonkeyResponse } from "../../utils/monkey-response";
|
||||
import * as LeaderboardsDAL from "../../dao/leaderboards";
|
||||
import * as LeaderboardsDAL from "../../dal/leaderboards";
|
||||
import MonkeyError from "../../utils/error";
|
||||
|
||||
export async function getLeaderboard(
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import * as PresetDAL from "../../dao/preset";
|
||||
import * as PresetDAL from "../../dal/preset";
|
||||
import { MonkeyResponse } from "../../utils/monkey-response";
|
||||
|
||||
export async function getPresets(
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import * as PsaDAL from "../../dao/psa";
|
||||
import * as PsaDAL from "../../dal/psa";
|
||||
import { MonkeyResponse } from "../../utils/monkey-response";
|
||||
|
||||
export async function getPsas(
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
import _ from "lodash";
|
||||
import { v4 as uuidv4 } from "uuid";
|
||||
import { getUser, updateQuoteRatings } from "../../dao/user";
|
||||
import * as ReportDAL from "../../dao/report";
|
||||
import * as NewQuotesDAL from "../../dao/new-quotes";
|
||||
import * as QuoteRatingsDAL from "../../dao/quote-ratings";
|
||||
import { getUser, updateQuoteRatings } from "../../dal/user";
|
||||
import * as ReportDAL from "../../dal/report";
|
||||
import * as NewQuotesDAL from "../../dal/new-quotes";
|
||||
import * as QuoteRatingsDAL from "../../dal/quote-ratings";
|
||||
import MonkeyError from "../../utils/error";
|
||||
import { verify } from "../../utils/captcha";
|
||||
import Logger from "../../utils/logger";
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
import * as ResultDAL from "../../dao/result";
|
||||
import * as ResultDAL from "../../dal/result";
|
||||
import {
|
||||
getUser,
|
||||
checkIfPb,
|
||||
checkIfTagPb,
|
||||
incrementBananas,
|
||||
updateTypingStats,
|
||||
} from "../../dao/user";
|
||||
import * as PublicStatsDAL from "../../dao/public-stats";
|
||||
import * as BotDAL from "../../dao/bot";
|
||||
} from "../../dal/user";
|
||||
import * as PublicStatsDAL from "../../dal/public-stats";
|
||||
import * as BotDAL from "../../dal/bot";
|
||||
import { roundTo2, stdDev } from "../../utils/misc";
|
||||
import objectHash from "object-hash";
|
||||
import Logger from "../../utils/logger";
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import * as UserDAL from "../../dao/user";
|
||||
import * as BotDAL from "../../dao/bot";
|
||||
import * as UserDAL from "../../dal/user";
|
||||
import * as BotDAL from "../../dal/bot";
|
||||
import MonkeyError from "../../utils/error";
|
||||
import Logger from "../../utils/logger";
|
||||
import { MonkeyResponse } from "../../utils/monkey-response";
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { CronJob } from "cron";
|
||||
import { announceLbUpdate } from "../dao/bot";
|
||||
import { announceLbUpdate } from "../dal/bot";
|
||||
import George from "../tasks/george";
|
||||
import * as LeaderboardsDAL from "../dao/leaderboards";
|
||||
import * as LeaderboardsDAL from "../dal/leaderboards";
|
||||
import { getCachedConfiguration } from "../init/configuration";
|
||||
|
||||
const CRON_SCHEDULE = "30 14/15 * * * *";
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import joi from "joi";
|
|||
import MonkeyError from "../utils/error";
|
||||
import { Response, NextFunction, RequestHandler } from "express";
|
||||
import { handleMonkeyResponse, MonkeyResponse } from "../utils/monkey-response";
|
||||
import { getUser } from "../dao/user";
|
||||
import { getUser } from "../dal/user";
|
||||
|
||||
interface ValidationOptions<T> {
|
||||
criteria: (data: T) => boolean;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { compare } from "bcrypt";
|
||||
import { getApeKey, updateLastUsedOn } from "../dao/ape-keys";
|
||||
import { getApeKey, updateLastUsedOn } from "../dal/ape-keys";
|
||||
import MonkeyError from "../utils/error";
|
||||
import { verifyIdToken } from "../utils/auth";
|
||||
import { base64UrlDecode } from "../utils/misc";
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue