remove logging
This commit is contained in:
parent
4a0db151d4
commit
d0acb97e36
5 changed files with 8 additions and 10 deletions
|
@ -13,7 +13,7 @@ export default NextAuth({
|
|||
],
|
||||
callbacks: {
|
||||
async signIn({ user, account, profile, email, credentials }) {
|
||||
console.log(user, account, profile, email, credentials);
|
||||
// console.log(user, account, profile, email, credentials);
|
||||
if (user.image != profile.image_url) {
|
||||
await prisma.user.update({
|
||||
data: {
|
||||
|
|
|
@ -29,11 +29,11 @@ export default function Home() {
|
|||
// };
|
||||
|
||||
const applyBorder = () => {
|
||||
console.log("apply");
|
||||
// console.log("apply");
|
||||
fetch("api/user/border/@me", { method: "POST", body: selected })
|
||||
.then((res) => res.json())
|
||||
.then((res) => {
|
||||
console.log(res);
|
||||
// console.log(res);
|
||||
if (res.error) {
|
||||
alertService.error(`error: ${res.error}`);
|
||||
} else {
|
||||
|
@ -46,7 +46,7 @@ export default function Home() {
|
|||
fetch("api/user/border/@me")
|
||||
.then((res) => res.json())
|
||||
.then((dat) => {
|
||||
console.log("border data", dat);
|
||||
// console.log("border data", dat);
|
||||
setBorderData(dat);
|
||||
setSelected(dat?.borderId || 0);
|
||||
});
|
||||
|
@ -73,7 +73,7 @@ export default function Home() {
|
|||
const timer = setTimeout(() => {
|
||||
// if data has not loaded in 5 seconds
|
||||
if (!data || !borderData) {
|
||||
console.log(data, borderData);
|
||||
// console.log(data, borderData);
|
||||
Router.reload();
|
||||
} else {
|
||||
console.log("data loaded properly, not reloading.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue