Browse Source

fix: Fix data for gives that fulfill offers that are attached to projects (not to include person info). Also: commentary.

get-get-hash
Trent Larson 1 week ago
parent
commit
783ad6e122
  1. 2
      src/db/tables/settings.ts
  2. 11
      src/services/AbsurdSqlDatabaseService.ts
  3. 7
      src/views/ClaimView.vue

2
src/db/tables/settings.ts

@ -10,6 +10,8 @@ export type BoundingBox = {
/** /**
* Settings type encompasses user-specific configuration details. * Settings type encompasses user-specific configuration details.
*
* New entries that are boolean should also be added to PlatformServiceMixin._mapColumnsToValues
*/ */
export type Settings = { export type Settings = {
// default entry is keyed with MASTER_SETTINGS_KEY; other entries are linked to an account with account ID // default entry is keyed with MASTER_SETTINGS_KEY; other entries are linked to an account with account ID

11
src/services/AbsurdSqlDatabaseService.ts

@ -182,14 +182,6 @@ class AbsurdSqlDatabaseService implements DatabaseService {
} }
operation.resolve(result); operation.resolve(result);
} catch (error) { } catch (error) {
// logger.error( // DISABLED
// "Error while processing SQL queue:",
// error,
// " ... for sql:",
// operation.sql,
// " ... with params:",
// operation.params,
// );
logger.error( logger.error(
"Error while processing SQL queue:", "Error while processing SQL queue:",
error, error,
@ -242,9 +234,6 @@ class AbsurdSqlDatabaseService implements DatabaseService {
// If initialized but no db, something went wrong // If initialized but no db, something went wrong
if (!this.db) { if (!this.db) {
// logger.error( // DISABLED
// `Database not properly initialized after await waitForInitialization() - initialized flag is true but db is null`,
// );
logger.error( logger.error(
`Database not properly initialized after await waitForInitialization() - initialized flag is true but db is null`, `Database not properly initialized after await waitForInitialization() - initialized flag is true but db is null`,
); );

7
src/views/ClaimView.vue

@ -1055,13 +1055,8 @@ export default class ClaimView extends Vue {
if (this.projectInfo) { if (this.projectInfo) {
// Recipient is a project // Recipient is a project
recipient = { recipient = {
did:
this.detailsForGive?.fulfillsPlanHandleId ||
this.detailsForOffer?.fulfillsPlanHandleId,
name: this.projectInfo.name, name: this.projectInfo.name,
handleId: handleId: this.detailsForOffer?.fulfillsPlanHandleId,
this.detailsForGive?.fulfillsPlanHandleId ||
this.detailsForOffer?.fulfillsPlanHandleId,
image: this.projectInfo.imageUrl, image: this.projectInfo.imageUrl,
}; };
} else { } else {

Loading…
Cancel
Save