(params: {
userId: string
logger: Logger
})
| 327 | } |
| 328 | |
| 329 | export async function grantSignupCredits(params: { |
| 330 | userId: string |
| 331 | logger: Logger |
| 332 | }): Promise<void> { |
| 333 | const { userId, logger } = params |
| 334 | |
| 335 | await processAndGrantCredit({ |
| 336 | userId, |
| 337 | amount: SIGNUP_FREE_CREDITS_GRANT, |
| 338 | type: 'free', |
| 339 | description: 'Signup free credits', |
| 340 | expiresAt: null, |
| 341 | operationId: `signup-free-${userId}`, |
| 342 | logger, |
| 343 | }) |
| 344 | } |
| 345 | |
| 346 | /** |
| 347 | * Revokes credits from a specific grant by operation ID. |
no test coverage detected