Hello Mg, welcome to English Forums! Unfortunately both versions lack a main verb, so are not quite sentences. Looking only at the relative clause, I would say that both were correct; but probably #2 would be more to the taste of most people.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.