We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0cce698 commit c197b27Copy full SHA for c197b27
1 file changed
index.ts
@@ -275,6 +275,7 @@ export default class OAuthPlugin extends AdminForthPlugin {
275
if (!success) {
276
console.error('Failed to upload avatar for user', user[this.options.emailField]);
277
} else {
278
+ await this.avatarUploadPlugin.markKeyForNotDeletion(filePath);
279
const userResourcePrimaryKey = this.resource.columns.find(col => col.primaryKey)?.name;
280
this.adminforth.resource(this.resource.resourceId).update(user[userResourcePrimaryKey], {[this.options.userAvatarField]: filePath} )
281
}
0 commit comments