remove unnecessary async await

This commit is contained in:
Michael C
2021-09-17 00:03:42 -04:00
parent 802dd50163
commit d4d9f2d4d7
2 changed files with 4 additions and 4 deletions

View File

@@ -7,7 +7,7 @@ import assert from "assert";
describe("postWarning", () => {
// constants
const endpoint = `${getbaseURL()}/api/warnUser`;
const getWarning = async (userID: string) => await db.prepare("get", `SELECT "userID", "issueTime", "issuerUserID", enabled, "reason" FROM warnings WHERE "userID" = ?`, [userID]);
const getWarning = (userID: string) => db.prepare("get", `SELECT "userID", "issueTime", "issuerUserID", enabled, "reason" FROM warnings WHERE "userID" = ?`, [userID]);
before(async () => {
await db.prepare("run", `INSERT INTO "vipUsers" ("userID") VALUES (?)`, [getHash("warning-vip")]);