changed prettier config
This commit is contained in:
parent
a47e64351c
commit
74bd4a0a6a
4 changed files with 4 additions and 17 deletions
|
@ -13,11 +13,7 @@ interface UserResult extends DatabaseResult {
|
|||
export default {
|
||||
async findUser(uid: string): Promise<UserResult> {
|
||||
try {
|
||||
const user = await admin
|
||||
.firestore()
|
||||
.collection("users")
|
||||
.doc(uid)
|
||||
.get()
|
||||
const user = await admin.firestore().collection("users").doc(uid).get()
|
||||
|
||||
if (user.exists) {
|
||||
return {
|
||||
|
|
|
@ -15,9 +15,7 @@ import secret from "./secret.json"
|
|||
import serviceAccountKey from "./firebase-adminsdk.json"
|
||||
|
||||
admin.initializeApp({
|
||||
credential: admin.credential.cert(
|
||||
serviceAccountKey as admin.ServiceAccount
|
||||
),
|
||||
credential: admin.credential.cert(serviceAccountKey as admin.ServiceAccount),
|
||||
})
|
||||
|
||||
const sessionOption: SessionOptions = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue