mirror of
https://github.com/wasp-lang/open-saas.git
synced 2025-06-28 09:41:12 +02:00
version bump
This commit is contained in:
parent
50fe6b31ff
commit
cd3f1a6676
4
.gitignore
vendored
4
.gitignore
vendored
@ -2,3 +2,7 @@
|
|||||||
/.env.server
|
/.env.server
|
||||||
/.env.client
|
/.env.client
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
fly config/fly-client.toml
|
||||||
|
fly config/fly-server.toml
|
||||||
|
fly-client.toml
|
||||||
|
fly-server.toml
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
app SaaSTemplate {
|
app SaaSTemplate {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.10.0"
|
version: "^0.11.1"
|
||||||
},
|
},
|
||||||
title: "My SaaS App",
|
title: "My SaaS App",
|
||||||
head: [
|
head: [
|
||||||
|
@ -57,16 +57,14 @@ export const stripePayment: StripePayment<void, StripePaymentResult> = async (_a
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
return new Promise((resolve, reject) => {
|
if (!session) {
|
||||||
if (!session) {
|
throw new HttpError(402, 'Could not create a Stripe session');
|
||||||
reject(new HttpError(402, 'Could not create a Stripe session'));
|
} else {
|
||||||
} else {
|
return {
|
||||||
resolve({
|
sessionUrl: session.url,
|
||||||
sessionUrl: session.url,
|
sessionId: session.id,
|
||||||
sessionId: session.id,
|
};
|
||||||
});
|
}
|
||||||
}
|
|
||||||
});
|
|
||||||
};
|
};
|
||||||
|
|
||||||
type GptPayload = {
|
type GptPayload = {
|
||||||
@ -145,7 +143,5 @@ export const generateGptResponse: GenerateGptResponse<GptPayload, RelatedObject>
|
|||||||
console.error(error);
|
console.error(error);
|
||||||
}
|
}
|
||||||
|
|
||||||
return new Promise((resolve, reject) => {
|
throw new HttpError(500, 'Something went wrong');
|
||||||
reject(new HttpError(500, 'Something went wrong'));
|
|
||||||
});
|
|
||||||
};
|
};
|
||||||
|
@ -2,7 +2,7 @@ import HttpError from '@wasp/core/HttpError.js';
|
|||||||
import type { RelatedObject } from '@wasp/entities';
|
import type { RelatedObject } from '@wasp/entities';
|
||||||
import type { GetRelatedObjects } from '@wasp/queries/types';
|
import type { GetRelatedObjects } from '@wasp/queries/types';
|
||||||
|
|
||||||
export const getRelatedObjects: GetRelatedObjects<unknown, RelatedObject[]> = async (args, context) => {
|
export const getRelatedObjects: GetRelatedObjects<void, RelatedObject[]> = async (args, context) => {
|
||||||
if (!context.user) {
|
if (!context.user) {
|
||||||
throw new HttpError(401);
|
throw new HttpError(401);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user