Files
dashback/src/db/entityaddress.js
seb e6c24654dd Align store calls with selected-company scoping and add entity numbers.
Drop companyId from company-scoped store wrappers and routes, add GET /entity/next-number plus optional number on entity create/update, and document dashdbschema API.md lookup in sibling-repos.
2026-08-07 06:22:13 +02:00

22 lines
703 B
JavaScript

import { getStore } from './store.js';
export async function list(googleAuthId, entityId) {
const store = await getStore();
return store.entityaddress.list(googleAuthId, entityId);
}
export async function create(googleAuthId, entityId, data) {
const store = await getStore();
return store.entityaddress.create(googleAuthId, entityId, data);
}
export async function update(googleAuthId, entityId, id, data) {
const store = await getStore();
return store.entityaddress.update(googleAuthId, entityId, id, data);
}
export async function remove(googleAuthId, entityId, id) {
const store = await getStore();
return store.entityaddress.delete(googleAuthId, entityId, id);
}