Skip to content
Snippets Groups Projects
Unverified Commit 22f5d852 authored by Thomas SAUVAGE's avatar Thomas SAUVAGE
Browse files

TODO

parent ff6ac180
No related branches found
No related tags found
1 merge request!4Trying to implement openid
Pipeline #13842 passed
import AuthCodeVerifier from 'App/Models/AuthCodeVerifier' import AuthCodeVerifier from 'App/Models/AuthCodeVerifier'
// TODO: Fix this
export const cronRemoveOldCodeVerifiers = async () => { export const cronRemoveOldCodeVerifiers = async () => {
console.log('Before:', await AuthCodeVerifier.all()) console.log('Before:', await AuthCodeVerifier.all())
await AuthCodeVerifier.query().delete().whereRaw("created_at < current_date - interval '1' hour") await AuthCodeVerifier.query().delete().whereRaw("created_at < current_date - interval '1' hour")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment