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 6 days 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.
*
* New entries that are boolean should also be added to PlatformServiceMixin._mapColumnsToValues
*/
export type Settings = {
// 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);
} catch (error) {
// logger.error( // DISABLED
// "Error while processing SQL queue:",
// error,
// " ... for sql:",
// operation.sql,
// " ... with params:",
// operation.params,
// );
logger.error(
"Error while processing SQL queue:",
error,
@ -242,9 +234,6 @@ class AbsurdSqlDatabaseService implements DatabaseService {
// If initialized but no db, something went wrong
if (!this.db) {
// logger.error( // DISABLED
// `Database not properly initialized after await waitForInitialization() - initialized flag is true but db is null`,
// );
logger.error(
`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) {
// Recipient is a project
recipient = {
did:
this.detailsForGive?.fulfillsPlanHandleId ||
this.detailsForOffer?.fulfillsPlanHandleId,
name: this.projectInfo.name,
handleId:
this.detailsForGive?.fulfillsPlanHandleId ||
this.detailsForOffer?.fulfillsPlanHandleId,
handleId: this.detailsForOffer?.fulfillsPlanHandleId,
image: this.projectInfo.imageUrl,
};
} else {

Loading…
Cancel
Save