mirror of
https://github.com/jcreek/LivingDexTracker.git
synced 2026-07-13 19:13:43 +00:00
Merge branch 'chore/migrate-from-mongodb' of https://github.com/jcreek/LivingDexTracker into chore/migrate-from-mongodb
This commit is contained in:
@@ -140,11 +140,15 @@ class CatchRecordRepository {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async findByUserAndPokemon(userId: string, pokedexEntryId: string): Promise<CatchRecord | null> {
|
async findByUserAndPokemon(userId: string, pokedexEntryId: string): Promise<CatchRecord | null> {
|
||||||
|
const numericId = Number(pokedexEntryId);
|
||||||
|
if (isNaN(numericId)) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
const { data, error } = await this.supabase
|
const { data, error } = await this.supabase
|
||||||
.from('catch_records')
|
.from('catch_records')
|
||||||
.select('*')
|
.select('*')
|
||||||
.eq('userId', userId)
|
.eq('userId', userId)
|
||||||
.eq('pokedexEntryId', pokedexEntryId)
|
.eq('pokedexEntryId', numericId)
|
||||||
.single();
|
.single();
|
||||||
|
|
||||||
if (error || !data) return null;
|
if (error || !data) return null;
|
||||||
|
|||||||
@@ -172,7 +172,7 @@ enable_confirmations = true
|
|||||||
# If enabled, users will need to reauthenticate or have logged in recently to change their password.
|
# If enabled, users will need to reauthenticate or have logged in recently to change their password.
|
||||||
secure_password_change = false
|
secure_password_change = false
|
||||||
# Controls the minimum amount of time that must pass before sending another signup confirmation or password reset email.
|
# Controls the minimum amount of time that must pass before sending another signup confirmation or password reset email.
|
||||||
max_frequency = "1s"
|
max_frequency = "30s"
|
||||||
# Number of characters used in the email OTP.
|
# Number of characters used in the email OTP.
|
||||||
otp_length = 6
|
otp_length = 6
|
||||||
# Number of seconds before the email OTP expires (defaults to 1 hour).
|
# Number of seconds before the email OTP expires (defaults to 1 hour).
|
||||||
|
|||||||
Reference in New Issue
Block a user