Fix create database for serverless accounts (#228)

This commit is contained in:
victor-meng
2020-09-24 14:03:37 -07:00
committed by GitHub
parent 290ca4aba5
commit 2e747a1a07
6 changed files with 8 additions and 14 deletions

View File

@@ -6,11 +6,7 @@ import { client } from "../CosmosClient";
import { sendCachedDataMessage } from "../MessageHandler";
import { userContext } from "../../UserContext";
export const readOffers = async (isServerless?: boolean): Promise<Offer[]> => {
if (isServerless) {
return []; // Reading offers is not supported for serverless accounts
}
export const readOffers = async (): Promise<Offer[]> => {
try {
if (configContext.platform === Platform.Portal) {
return sendCachedDataMessage<Offer[]>(MessageTypes.AllOffers, [