import { ChargeTagsProvider } from '../providers/charge-tags.provider.js';
export const commonTagsChargeFields = {
    tags: async (DbCharge, _, { injector }) => {
        return injector
            .get(ChargeTagsProvider)
            .getTagsByChargeIDLoader.load(DbCharge.id)
            .then(res => {
            if (!res) {
                return [];
            }
            return res;
        });
    },
};
//# sourceMappingURL=common.js.map