Fix: prettier config in resources\ not being standard.

This commit is contained in:
Taso committed 2021-01-13 20:36:03 -05:00
1 parent d56112a0cb
commit ec1451a9aa
28 files changed
+349 -349

No files matched your search

+4 -4
View File
@@ -1,5 +1,5 @@
import { pool } from "./db";
import { ESX } from "./server";
import { pool } from './db';
import { ESX } from './server';
interface IPhoneNumber {
phone_number: string;
@@ -10,7 +10,7 @@ interface Iidentifier {
}
export async function usePhoneNumber(identifier: string): Promise<string> {
const query = "SELECT phone_number FROM users WHERE identifier = ?";
const query = 'SELECT phone_number FROM users WHERE identifier = ?';
const [results] = await pool.query(query, [identifier]);
const phoneNumber = <IPhoneNumber[]>results;
return phoneNumber[0].phone_number;
@@ -25,7 +25,7 @@ export async function useIdentifier(): Promise<string> {
export async function getIdentifierByPhoneNumber(
phoneNumber: string
): Promise<string> {
const query = "SELECT identifier FROM users WHERE phone_number = ?";
const query = 'SELECT identifier FROM users WHERE phone_number = ?';
const [results] = await pool.query(query, [phoneNumber]);
const identifier = <Iidentifier[]>results;
return identifier[0].identifier;