in progress: db support for tandem add to user table on supabase registration
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user