mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-07 12:32:16 +00:00
Update tests and refactor user query: Add 'endpointSpecSwarm' to application test cases and rename user variable in Stripe webhook to improve clarity and consistency.
This commit is contained in:
@@ -42,6 +42,7 @@ const baseApp: ApplicationNested = {
|
|||||||
triggerType: "push",
|
triggerType: "push",
|
||||||
appName: "",
|
appName: "",
|
||||||
autoDeploy: true,
|
autoDeploy: true,
|
||||||
|
endpointSpecSwarm: null,
|
||||||
serverId: "",
|
serverId: "",
|
||||||
registryUrl: "",
|
registryUrl: "",
|
||||||
branch: null,
|
branch: null,
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ const baseApp: ApplicationNested = {
|
|||||||
giteaId: "",
|
giteaId: "",
|
||||||
cleanCache: false,
|
cleanCache: false,
|
||||||
applicationStatus: "done",
|
applicationStatus: "done",
|
||||||
|
endpointSpecSwarm: null,
|
||||||
appName: "",
|
appName: "",
|
||||||
autoDeploy: true,
|
autoDeploy: true,
|
||||||
enableSubmodules: false,
|
enableSubmodules: false,
|
||||||
|
|||||||
@@ -252,10 +252,10 @@ const disableServers = async (userId: string) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const findUserByStripeCustomerId = async (stripeCustomerId: string) => {
|
const findUserByStripeCustomerId = async (stripeCustomerId: string) => {
|
||||||
const user = db.query.user.findFirst({
|
const userResult = await db.query.user.findFirst({
|
||||||
where: eq(user.stripeCustomerId, stripeCustomerId),
|
where: eq(user.stripeCustomerId, stripeCustomerId),
|
||||||
});
|
});
|
||||||
return user;
|
return userResult;
|
||||||
};
|
};
|
||||||
|
|
||||||
const activateServer = async (serverId: string) => {
|
const activateServer = async (serverId: string) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user