mirror of
https://github.com/rowyio/rowy.git
synced 2026-09-02 04:00:17 +02:00
enable connectors logging in code editor
This commit is contained in:
@@ -15,6 +15,11 @@ type ConnectorContext = {
|
||||
auth: firebaseauth.BaseAuth;
|
||||
query: string;
|
||||
user: ConnectorUser;
|
||||
logging: {
|
||||
log: (payload: any) => void;
|
||||
warn: (payload: any) => void;
|
||||
error: (payload: any) => void;
|
||||
};
|
||||
};
|
||||
type ConnectorResult = any[];
|
||||
type Connector = (
|
||||
|
||||
@@ -11,7 +11,7 @@ export const replacer = (data: any) => (m: string, key: string) => {
|
||||
return get(data, objKey, defaultValue);
|
||||
};
|
||||
|
||||
export const baseFunction = `const connectorFn: Connector = async ({query, row, user}) => {
|
||||
export const baseFunction = `const connectorFn: Connector = async ({query, row, user, logging}) => {
|
||||
// TODO: Implement your service function here
|
||||
return [];
|
||||
};`;
|
||||
|
||||
Reference in New Issue
Block a user