diff --git a/$AGENT_HOME/.config/gh/config.yml b/$AGENT_HOME/.config/gh/config.yml new file mode 100644 index 0000000..8b25011 --- /dev/null +++ b/$AGENT_HOME/.config/gh/config.yml @@ -0,0 +1,27 @@ +# The current version of the config schema +version: 1 +# What protocol to use when performing git operations. Supported values: ssh, https +git_protocol: https +# What editor gh should run when creating issues, pull requests, etc. If blank, will refer to environment. +editor: +# When to interactively prompt. This is a global config that cannot be overridden by hostname. Supported values: enabled, disabled +prompt: enabled +# Preference for editor-based interactive prompting. This is a global config that cannot be overridden by hostname. Supported values: enabled, disabled +prefer_editor_prompt: disabled +# A pager program to send command output to, e.g. "less". If blank, will refer to environment. Set the value to "cat" to disable the pager. +pager: +# Aliases allow you to create nicknames for gh commands +aliases: + co: pr checkout +# The path to a unix socket through which to send HTTP connections. If blank, HTTP traffic will be handled by net/http.DefaultTransport. +http_unix_socket: +# What web browser gh should use when opening URLs. If blank, will refer to environment. +browser: +# Whether to display labels using their RGB hex color codes in terminals that support truecolor. Supported values: enabled, disabled +color_labels: disabled +# Whether customizable, 4-bit accessible colors should be used. Supported values: enabled, disabled +accessible_colors: disabled +# Whether an accessible prompter should be used. Supported values: enabled, disabled +accessible_prompter: disabled +# Whether to use a animated spinner as a progress indicator. If disabled, a textual progress indicator is used instead. Supported values: enabled, disabled +spinner: enabled diff --git a/$AGENT_HOME/.config/gh/hosts.yml b/$AGENT_HOME/.config/gh/hosts.yml new file mode 100644 index 0000000..1d01c2f --- /dev/null +++ b/$AGENT_HOME/.config/gh/hosts.yml @@ -0,0 +1,6 @@ +github.com: + users: + groombook-engineer[bot]: + oauth_token: ghs_znRlNnhuSsNZp0GejabxpkSUqXC9vt27yl3K + user: groombook-engineer[bot] + oauth_token: ghs_znRlNnhuSsNZp0GejabxpkSUqXC9vt27yl3K diff --git a/.gh-token b/.gh-token new file mode 100644 index 0000000..9a181ad --- /dev/null +++ b/.gh-token @@ -0,0 +1 @@ +ghs_HTwhdzSsUHxoz4yvVcDrWV6MHmyqgP2fZXLn diff --git a/apps/api/src/services/reminders.ts b/apps/api/src/services/reminders.ts index d5d83db..b3eb756 100644 --- a/apps/api/src/services/reminders.ts +++ b/apps/api/src/services/reminders.ts @@ -5,8 +5,8 @@ import { eq, getDb, gte, + inArray, lt, - sql, appointments, clients, pets, @@ -77,9 +77,7 @@ export async function runReminderCheck(): Promise { .where( and( eq(reminderLogs.reminderType, window.label), - appointmentIds.length === 1 - ? eq(reminderLogs.appointmentId, appointmentIds[0]!) - : sql`${reminderLogs.appointmentId} = ANY(${appointmentIds})` + inArray(reminderLogs.appointmentId, appointmentIds) ) ) ).map((r) => r.appointmentId) diff --git a/infra-repo b/infra-repo new file mode 160000 index 0000000..ff42966 --- /dev/null +++ b/infra-repo @@ -0,0 +1 @@ +Subproject commit ff429667511fa8cb441ec7faed9044901d396fd6