in progress: db support for tandem add to user table on supabase registration

This commit is contained in:
2022-10-10 18:28:49 -05:00
parent f29ee33ca1
commit 4965480aaf
9 changed files with 96 additions and 4 deletions

View File

@@ -62,4 +62,19 @@ module.exports = class UserModel {
throw new Error(e);
}
}
async createFromSupabase(data) {
try {
const statement = '';
const result = await db.query(statement);
if (result.rows.length) {
return result.rows[0];
}
return null;
} catch(e) {
throw new Error(e);
}
}
}