-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/rowyio/rowyRun into main
- Loading branch information
Showing
39 changed files
with
1,029 additions
and
919 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules/ | ||
.yarn |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
export const rowyUsers = '_rowy_/userManagement/users' | ||
export const rowyUsersImpersonationLogs = '_rowy_/userManagement/impersonationLogs' | ||
export const rowyUsers = "_rowy_/userManagement/users"; | ||
export const rowyUsersImpersonationLogs = | ||
"_rowy_/userManagement/impersonationLogs"; | ||
|
||
export default { | ||
rowyUsers, | ||
rowyUsersImpersonationLogs | ||
} | ||
rowyUsersImpersonationLogs, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,20 @@ | ||
|
||
import { db, admin } from '../firebaseConfig' | ||
import { Request, Response } from 'express'; | ||
export const listCollections =async (req: Request) => { | ||
import { db, admin } from "../firebaseConfig"; | ||
import { Request, Response } from "express"; | ||
export const listCollections = async (req: Request) => { | ||
const { path } = req.query; | ||
if (path) { | ||
const collections = await db.doc(decodeURIComponent(path as string)).listCollections() | ||
return collections.map(collection => collection.id) | ||
|
||
const collections = await db | ||
.doc(decodeURIComponent(path as string)) | ||
.listCollections(); | ||
return collections.map((collection) => collection.id); | ||
} else { | ||
const collections = await db.listCollections() | ||
return collections.map(collection => collection.id) | ||
const collections = await db.listCollections(); | ||
return collections.map((collection) => collection.id); | ||
} | ||
} | ||
|
||
}; | ||
|
||
export const getFirestoreRules = async () => { | ||
const securityRules = admin.securityRules() | ||
const firestoreRules = await securityRules.getFirestoreRuleset() | ||
return firestoreRules | ||
} | ||
const securityRules = admin.securityRules(); | ||
const firestoreRules = await securityRules.getFirestoreRuleset(); | ||
return firestoreRules; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.