ci: trigga på master + formatfix inför Gitea Actions
CI / Typecheck, test & build (push) Failing after 2s
CI / Typecheck, test & build (push) Failing after 2s
This commit is contained in:
@@ -84,8 +84,10 @@ export async function markMilestone(
|
||||
|
||||
const isValueConfirmedNow =
|
||||
isActivatedNow &&
|
||||
(before.firstCookingSessionCompletedAt != null || milestone === "firstCookingSessionCompletedAt") &&
|
||||
(before.inventoryUpdatedAfterCookingAt != null || milestone === "inventoryUpdatedAfterCookingAt");
|
||||
(before.firstCookingSessionCompletedAt != null ||
|
||||
milestone === "firstCookingSessionCompletedAt") &&
|
||||
(before.inventoryUpdatedAfterCookingAt != null ||
|
||||
milestone === "inventoryUpdatedAfterCookingAt");
|
||||
|
||||
const valueConfirmedNow = !wasValueConfirmed && isValueConfirmedNow;
|
||||
|
||||
@@ -121,14 +123,16 @@ export async function getActivationState(db: Db, householdId: string): Promise<A
|
||||
.from(schema.households)
|
||||
.where(eq(schema.households.id, householdId));
|
||||
|
||||
return row ?? {
|
||||
firstScanCompletedAt: null,
|
||||
fifthItemConfirmedAt: null,
|
||||
firstRecipeRecommendationViewedAt: null,
|
||||
firstRecipeSavedOrStartedAt: null,
|
||||
activatedAt: null,
|
||||
firstCookingSessionCompletedAt: null,
|
||||
inventoryUpdatedAfterCookingAt: null,
|
||||
valueConfirmedAt: null,
|
||||
};
|
||||
return (
|
||||
row ?? {
|
||||
firstScanCompletedAt: null,
|
||||
fifthItemConfirmedAt: null,
|
||||
firstRecipeRecommendationViewedAt: null,
|
||||
firstRecipeSavedOrStartedAt: null,
|
||||
activatedAt: null,
|
||||
firstCookingSessionCompletedAt: null,
|
||||
inventoryUpdatedAfterCookingAt: null,
|
||||
valueConfirmedAt: null,
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user