-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14813 from Budibase/budi-8755-hide-power-role-for…
…-v3-apps Hide power role for v3 apps
- Loading branch information
Showing
7 changed files
with
171 additions
and
49 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
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
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,18 @@ | ||
import { context, DocumentType } from "@budibase/backend-core" | ||
import { App } from "@budibase/types" | ||
|
||
/** | ||
* @deprecated the plan is to get everything using `tryGet` instead, then rename | ||
* `tryGet` to `get`. | ||
*/ | ||
export async function get() { | ||
const db = context.getAppDB() | ||
const application = await db.get<App>(DocumentType.APP_METADATA) | ||
return application | ||
} | ||
|
||
export async function tryGet() { | ||
const db = context.getAppDB() | ||
const application = await db.tryGet<App>(DocumentType.APP_METADATA) | ||
return application | ||
} |
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.