Whatsapp service updates
This commit is contained in:
parent
e22a8e8d98
commit
3da103c010
16 changed files with 151 additions and 36 deletions
|
|
@ -4,6 +4,7 @@ import {
|
|||
updateAction,
|
||||
deleteAction,
|
||||
selectAllAction,
|
||||
selectOneAction,
|
||||
} from "../actions/service";
|
||||
import { FieldDescription, Entity } from "./service";
|
||||
|
||||
|
|
@ -70,3 +71,14 @@ export function generateSelectAllAction(table: keyof Database) {
|
|||
return selectAllAction(table);
|
||||
};
|
||||
}
|
||||
|
||||
type GenerateSelectOneArgs = {
|
||||
table: keyof Database;
|
||||
id: string;
|
||||
};
|
||||
|
||||
export function generateSelectOneAction({ table, id }: GenerateSelectOneArgs) {
|
||||
return async () => {
|
||||
return selectOneAction({ table, id });
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue