diff --git a/packages/discovery-provider/plugins/pedalboard/apps/relay/src/middleware/validator.ts b/packages/discovery-provider/plugins/pedalboard/apps/relay/src/middleware/validator.ts index 2c0cc58ceec..3a4c9720888 100644 --- a/packages/discovery-provider/plugins/pedalboard/apps/relay/src/middleware/validator.ts +++ b/packages/discovery-provider/plugins/pedalboard/apps/relay/src/middleware/validator.ts @@ -182,7 +182,11 @@ export const retrieveUser = async ( throw new Error('either handle or senderAddress is required') } - const user = await query.andWhere('is_current', '=', true).first() + const user = await query + .andWhere('is_current', '=', true) + .whereNotNull('handle_lc') + .orderBy('created_at', 'asc') + .first() return user }