https://supabase.com/ logo
Join Discord
Powered by
# help
  • m

    Markeem

    12/21/2021, 8:13 AM
    Does anyone know how to filter for a timestamp field (query) using the Js api ?
  • b

    bh

    12/21/2021, 8:20 AM
    12.6 to 12.9 is a security update, not a major release migration
  • m

    Markeem

    12/21/2021, 10:43 AM
    Okay found the solution. For anyone interested:
    select('username ,updated_at').lt('updated_at', new Date(2021, 11, 18, 13).toISOString())
    works or some special keywords work as well
    select('username ,updated_at').lt('updated_at', 'now')
  • i

    ilbert

    12/21/2021, 11:16 AM
    yeah
  • i

    ilbert

    12/21/2021, 11:16 AM
    I see only two options
  • n

    noxy

    12/21/2021, 11:55 AM
    i think u might be on old supabase version
  • n

    noxy

    12/21/2021, 11:56 AM
    are you self hosting?
  • i

    ilbert

    12/21/2021, 12:00 PM
    Nope, it's hosted on Supabase
  • n

    noxy

    12/21/2021, 12:03 PM
    so maybe you still have older version
  • n

    noxy

    12/21/2021, 12:03 PM
    as far as i know supabase doesnt migrate automatically
  • n

    noxy

    12/21/2021, 12:04 PM
    thats how it looks for me
  • n

    noxy

    12/21/2021, 12:05 PM
    or maybe it's just selectively available for now
  • n

    noxy

    12/21/2021, 12:06 PM
    if i were you i'd check postgres version
  • n

    noxy

    12/21/2021, 12:06 PM
    if it's different than 13.3 then that would mean that idd different projects are hosted on different supabase versions
  • i

    ilbert

    12/21/2021, 12:13 PM
    it seems to be v 13.3
  • n

    noxy

    12/21/2021, 12:14 PM
    is still can be different supabase version (i think) but i've no idea how to check that :p
  • i

    ilbert

    12/21/2021, 12:15 PM
    do you think I should contact the support team?
  • n

    noxy

    12/21/2021, 12:18 PM
    that's what i would do
  • e

    eyk

    12/21/2021, 12:39 PM
    Just curious, is there a way to extend an Auth session beyond 1 week?
  • u

    user

    12/21/2021, 4:05 PM
    Wondering if I could get some help on this stackoverflow question for supabase https://stackoverflow.com/questions/70438300/prisma-supabase-trigger-and-function-to-insert-user-id-into-another-tables-row
  • a

    anothercoder

    12/21/2021, 4:14 PM
    btw, I think u can edit the docker-compose file to bind studio to only localhost: - 127.0.0.1:${STUDIO_PORT}:3000/tcp
  • v

    Village

    12/21/2021, 4:14 PM
    I probably could have but I didn’t want to
  • v

    Village

    12/21/2021, 4:15 PM
    I can’t log into studio on a server
  • j

    jensen

    12/21/2021, 4:58 PM
    You should also be able to create the new Date with at timestamp
    new Date(1640105900 * 1000).toISOString()
    . In this instance you are using the ISO 8601 date format
    2021-12-05T09:00:00Z
    for the comparison.
  • t

    Timon

    12/21/2021, 5:01 PM
    Hi everyone! Realtime subscriptions (all events) are working for one of my table but not another one. Any idea where this may come from? Both are "enabled" in the replication so I just don't get it. RLS are also set correctly, the bug even happens if I disable all RLS actually. I even tried to duplicate the problematic table, delete the old one. Unsuccessfully... Did this ever happened to anyone else? Thank you so much for your help, I'm about to bang my head against the wall. 🤕
  • k

    krithika

    12/21/2021, 6:42 PM
    Hey guys, when I'm using
    signIn
    or
    signUp
    , the
    error.message
    reads
    aborted
    . Would you know what's causing that/how to fix it? For reference, here's the code:
    Copy code
    js
    
    const signin = async (email, password, navigate) => {
        console.log("log in called", email, password)
        try {
            const {user, session, error} = await supabase.auth.signIn({email, password})
    
            if (error) throw error
            alert('logged in')
            console.log('logged in')
            navigate('/dashboard')
        }
        catch (error) {
            console.log("error in signin", error.message)
            alert(error.message)
        }
    }
    
    const signup = async (email, password, navigate) => {
        console.log("signup called", email, password)
        try {
            // const {user, session, error} = await supabase.auth.signUp({ email, password })
            const {user, session, error} = await supabase.auth.signUp({ email, password })
            if (error) throw error
            console.log("here")
            navigate('/dashboard')
        }
        catch (error) {
            console.log("error in signup", error.message)
            alert(error.message)
        }
    }
  • r

    Ryan the Temp

    12/21/2021, 6:45 PM
    Hey, 2 questions. 1. How can I get the exported event types? 2. When I subscribe to the delete event type, like so:
    Copy code
    ts
    this.supabase.instance
          .from<definitions['games']>('games')
          .on(SupabaseEventTypes.delete, (payload) => console.log(payload))
          .subscribe();
    nothing gets logged. I've enabled full table replica like so:
    alter table "games" replica identity full;
    but still it doesn't seem to trigger the event for some reason. 🤔
    p
    • 2
    • 24
  • j

    jibbery

    12/21/2021, 7:29 PM
    Retrieve vercel projects failed. An error has occured: 401
  • j

    jibbery

    12/21/2021, 7:29 PM
    I'm getting this error when trying to use Vercel. Anyone know how to remedy this?
  • p

    Prodigy7kX

    12/21/2021, 9:23 PM
    how would that translate to a SQL Statement:
    Copy code
    ts
    this.supabase.from("boards").select("*, cards(*)");
1...166167168...316Latest